fix(hyprland): stay_focused not stayfocused (0.55)
Some checks failed
Check / eval (push) Has been cancelled
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:
@@ -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*,"
|
||||
|
||||
Reference in New Issue
Block a user