diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2026-01-28 18:09:57 +0100 |
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2026-01-28 18:09:57 +0100 |
| commit | c71bb201100cf07fecadfa26921c2f26bfb2de72 (patch) | |
| tree | 9958edea00329e901890fc162788066f62a1bde3 /.config | |
| parent | 60469bf8e9911a4361e7b6ffef8ef8191774e5f9 (diff) | |
Hyprland: Fix window rule syntax
Diffstat (limited to '.config')
| -rw-r--r-- | .config/hypr/hyprland.conf.in | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/.config/hypr/hyprland.conf.in b/.config/hypr/hyprland.conf.in index f2701f3..0698903 100644 --- a/.config/hypr/hyprland.conf.in +++ b/.config/hypr/hyprland.conf.in @@ -192,11 +192,20 @@ bindm = $modkey, mouse:272, movewindow bindm = $modkey, mouse:273, resizewindow # Open manpages in floating windows -windowrulev2 = float, class:^(org\.pwmt\.zathura)$ -windowrulev2 = size 50% 90%, class:^(org\.pwmt\.zathura)$ -windowrulev2 = center, class:^(org\.pwmt\.zathura)$ - -# Open calculator in a floating window -windowrulev2 = float, class:^(qalculate-gtk)$ -windowrulev2 = size 50% 50%, class:^(qalculate-gtk)$ -windowrulev2 = center, class:^(qalculate-gtk)$ +windowrule { + name = centered-pdfs + match:class = ^(org\.pwmt\.zathura)$ + + float = yes + center = yes + size = 50%, 90% +} + +windowrule { + name = centered-calculator + match:class = qalculate-gtk + + float = yes + center = yes + size = 50%, 50% +} |