Skip to content

Commit 7fee60e

Browse files
fix(hypr): add explicit 'on' value to boolean windowrules (#78)
## Summary - Follow-up to #77. After migrating matchers to `match:class/title`, Hyprland still printed `invalid field float: missing a value` (and same for `center`, `pin`) on startup. - Per the [Hyprland wiki Static Effects table](https://wiki.hyprland.org/Configuring/Window-Rules/), boolean rules like `float`, `center`, `pin` take an optional `[on]` argument. When the rule is written **before** the matcher (`windowrule = float, match:class ...`), the comma terminates the field, so the parser sees `float` as a field name needing a value. Adding `on` makes the rule explicit and silences the banner. ## Test plan - [x] `hyprctl reload` — no config-error banner. - [x] qalculate-gtk opens floating, sized 420x540, centered. - [x] Steam Friends List / Settings windows float. - [x] memento window floats, sized 860x580, centered, pinned. https://claude.ai/code/session_01N8tiUF5B7vqip5BGEwRyBW --- _Generated by [Claude Code](https://claude.ai/code/session_01N8tiUF5B7vqip5BGEwRyBW)_
2 parents 28d3fd4 + d70e98f commit 7fee60e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎config/hypr/hyprland.conf‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,14 @@ windowrule = opacity 1.0 override 1.0 override, match:class ^(zathura)$
207207
windowrule = opacity 1.0 override 1.0 override, match:class ^(obsidian)$
208208

209209
# ── Qalculate ──
210-
windowrule = float, match:class ^(qalculate-gtk)$
210+
windowrule = float on, match:class ^(qalculate-gtk)$
211211
windowrule = size 420 540, match:class ^(qalculate-gtk)$
212-
windowrule = center, match:class ^(qalculate-gtk)$
212+
windowrule = center on, match:class ^(qalculate-gtk)$
213213

214214
# ── Steam ──
215215
windowrule = opacity 1.0 override 1.0 override, match:class ^(steam)$
216-
windowrule = float, match:class ^(steam)$, match:title ^(Friends List)$
217-
windowrule = float, match:class ^(steam)$, match:title ^(Steam Settings)$
216+
windowrule = float on, match:class ^(steam)$, match:title ^(Friends List)$
217+
windowrule = float on, match:class ^(steam)$, match:title ^(Steam Settings)$
218218
windowrule = workspace 9 silent, match:class ^(steam)$, match:title ^(Steam)$
219219

220220
# ── Calibre (eBooks) ──
@@ -226,10 +226,10 @@ windowrule = opacity 1.0 override 1.0 override, match:class ^(YACReader)$
226226
windowrule = opacity 1.0 override 1.0 override, match:class ^(YACReaderLibrary)$
227227

228228
# ── eww Memento Mori ──
229-
windowrule = float, match:title ^(memento)$
229+
windowrule = float on, match:title ^(memento)$
230230
windowrule = size 860 580, match:title ^(memento)$
231-
windowrule = center, match:title ^(memento)$
232-
windowrule = pin, match:title ^(memento)$
231+
windowrule = center on, match:title ^(memento)$
232+
windowrule = pin on, match:title ^(memento)$
233233

234234
# ── Autostart ──
235235
exec-once = waybar

0 commit comments

Comments
 (0)