From 99ab27130520ad6a372b93031b12c16dac4cfff6 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Sat, 10 Aug 2024 16:32:15 +0200 Subject: [PATCH] Hyprland: Use tags to match KeePass popups --- wayland.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/wayland.nix b/wayland.nix index 41677ae..af8fb29 100644 --- a/wayland.nix +++ b/wayland.nix @@ -599,14 +599,13 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) { "$mod, mouse:273, resizewindow" ]; - "$keepassPopup" = ''class:^org\.keepassxc\.KeePassXC$, title:^(Unlock.*|.*Access Request)$''; - windowrulev2 = [ ''workspace name:A silent, class:^org\.keepassxc\.KeePassXC$, title:^Vault\.kdbx'' - "float, $keepassPopup" - "center, $keepassPopup" - "dimaround, $keepassPopup" - "stayfocused, $keepassPopup" + ''tag +focus, class:^org\.keepassxc\.KeePassXC$, title:^(Unlock.*|.*Access Request)$'' + "float, tag:focus" + "center, tag:focus" + "dimaround, tag:focus" + "stayfocused, tag:focus" "suppressevent maximize, class:.*" ];