parser: add CfgApplyEffects struct and extend CfgRule with fullscreen, can_float, can_fullscreen, apply_effects

This commit is contained in:
2026-07-03 03:26:22 -04:00
parent f5abfe5bc6
commit 690c328c38
+22 -5
View File
@@ -45,14 +45,31 @@ typedef struct {
int tap_button_map; /* libinput enum value */ int tap_button_map; /* libinput enum value */
} CfgInput; } CfgInput;
/* Per-rule effect toggles — which effects to apply to matched windows */
typedef struct {
bool rounding;
bool shadows;
bool transparency;
bool blur;
bool gaps;
bool smartgaps;
bool border;
bool sloppy_focus;
} CfgApplyEffects;
/* Window Rules */ /* Window Rules */
typedef struct { typedef struct {
char app_id[CFG_MAX_STRLEN]; char app_id[CFG_MAX_STRLEN];
char title[CFG_MAX_STRLEN]; /* empty string = wildcard */ char title[CFG_MAX_STRLEN]; /* empty string = wildcard */
uint32_t tags; uint32_t tags;
bool floating; bool floating;
int monitor; /* -1 = current */ bool fullscreen;
bool can_float;
bool can_fullscreen;
CfgApplyEffects apply_effects;
int monitor; /* -1 = current */
} CfgRule; } CfgRule;
/* Monitor Rules */ /* Monitor Rules */