From 6d61976106b9ffc1e202c63dc7c346891716477f Mon Sep 17 00:00:00 2001 From: reidlab Date: Fri, 13 Dec 2024 22:07:02 -0800 Subject: [PATCH] window rules --- modules/desktop/hyprland.nix | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/modules/desktop/hyprland.nix b/modules/desktop/hyprland.nix index a6d202c..76243e5 100644 --- a/modules/desktop/hyprland.nix +++ b/modules/desktop/hyprland.nix @@ -224,8 +224,8 @@ in { }; windowrulev2 = [ - # common popups - # we should totally dedupe these + # TODO: dedupe + # commons "float, class:org.gnome.FileRoller" "size 1100 650, class:org.gnome.FileRoller" "center, class:org.gnome.FileRoller" @@ -253,10 +253,7 @@ in { "float, initialTitle:^File Upload$" "size 1100 650, initialTitle:^File Upload$" "center, initialTitle:^File Upload$" - - "float, class:\.exe$" - - # fix focus + # privacy popups "stayfocused, class:^gcr-prompter" "dimaround, class:^gcr-prompter" "stayfocused, class:^pinentry-" @@ -264,6 +261,16 @@ in { "stayfocused, class:^polkit-" "dimaround, class:^polkit-" + "float, class:\.exe$" + "rounding 0, class:\.exe$" + + # steam notifs + "rounding 0, title:^notificationtoasts_" + "pin, title:^notificationtoasts_" + "noborder, title:^notificationtoasts_" + "nofocus, title:^notificationtoasts_" + "noshadow, title:^notificationtoasts_" + # firefox pip "float, title:^Picture-in-Picture$" "pin, title:^Picture-in-Picture$" @@ -272,6 +279,7 @@ in { # discord pip "pin, initialTitle:^Discord Popout$" "float, initialTitle:^Discord Popout$" + "noborder, initialTitle:^Discord Popout$" # workspace moving "workspace 1 silent, class:^firefox"