From c71bb201100cf07fecadfa26921c2f26bfb2de72 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 28 Jan 2026 18:09:57 +0100 Subject: Hyprland: Fix window rule syntax --- .config/hypr/hyprland.conf.in | 25 +++++++++++++++++-------- 1 file 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% +} -- cgit v1.2.3