fix(hyprland): stay_focused not stayfocused (0.55)
Some checks failed
Check / eval (push) Has been cancelled

Hyprland 0.55 renamed the effect; stayfocused 1 → invalid field type
on line 158 (polkit rules). Keep float/center/workspace current.
This commit is contained in:
2026-07-10 13:38:54 +01:00
parent d7427ae5da
commit 1e1d568947
3 changed files with 11 additions and 4 deletions

View File

@@ -31,10 +31,14 @@ conf = sys.argv[1]
lines = open(conf).read().splitlines()
# Effect keywords that in the dead grammar sat directly before the comma.
# Effect keywords that in the dead grammar sat directly before the comma.
# Hyprland 0.55 renames: stayfocused → stay_focused (underscore). Keep the
# old name in the dead-grammar list so a regression to bare `stayfocused,`
# still fails the check.
EFFECTS = (
"float", "center", "tile", "pin", "fullscreen", "maximize",
"size", "move", "opacity", "workspace", "monitor", "fullscreenstate",
"group", "stayfocused", "pseudo", "immediate",
"group", "stayfocused", "stay_focused", "pseudo", "immediate",
)
rule_first = re.compile(
r"windowrule\s*=\s*(?:" + "|".join(EFFECTS) + r")\s*,"