From 776b544728cc907fb054a8841854b4bcfa4e420b Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 9 Aug 2024 21:20:32 -0400 Subject: [PATCH] desktop: add rules for mate polkit --- homeManagerModules/desktop/hyprland/settings.nix | 3 +++ homeManagerModules/desktop/sway/settings.nix | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/homeManagerModules/desktop/hyprland/settings.nix b/homeManagerModules/desktop/hyprland/settings.nix index e198a468..0a763d95 100644 --- a/homeManagerModules/desktop/hyprland/settings.nix +++ b/homeManagerModules/desktop/hyprland/settings.nix @@ -184,6 +184,7 @@ in { "center(1),class:(gcr-prompter)" "center(1),class:(nm-connection-editor)" "center(1),class:(pavucontrol)" + "center(1),class:(polkit-mate-authentication-agent-1)" "float, class:^(firefox)$, title:^(Picture-in-Picture)$" "float,class:(.blueman-manager-wrapped)" "float,class:(blueberry.py)" @@ -192,6 +193,7 @@ in { "float,class:(pavucontrol)" "move 70% 20%, class:^(firefox)$, title:^(Picture-in-Picture)$" "pin,class:(gcr-prompter)" + "pin,class:(polkit-mate-authentication-agent-1)" "pin,class:^(firefox)$, title:^(Picture-in-Picture)$" "size 40% 60%,class:(.blueman-manager-wrapped)" "size 40% 60%,class:(blueberry.py)" @@ -199,6 +201,7 @@ in { "size 40% 60%,class:(nm-connection-editor)" "size 40% 60%,class:(pavucontrol)" "stayfocused,class:(gcr-prompter)" + "stayfocused,class:(polkit-mate-authentication-agent-1)" "suppressevent maximize, class:.*" ]; diff --git a/homeManagerModules/desktop/sway/settings.nix b/homeManagerModules/desktop/sway/settings.nix index f92a19b1..fd6a223b 100644 --- a/homeManagerModules/desktop/sway/settings.nix +++ b/homeManagerModules/desktop/sway/settings.nix @@ -196,6 +196,10 @@ in { command = "focus; sticky toggle"; criteria = {app_id = "gcr-prompter";}; } + { + command = "focus; sticky toggle"; + criteria = {app_id = "polkit-mate-authentication-agent-1";}; + } { command = "resize set 40ppt 60ppt; move position center"; criteria = {title = "Open Folder";};