From 850a17a879a6e27c6c06997d30cb935a04e9c665 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 3 Aug 2024 21:14:49 -0400 Subject: [PATCH] desktop: pin and stay focused on gcr-prompter --- 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 64716dc5..f0066d33 100644 --- a/homeManagerModules/desktop/hyprland/settings.nix +++ b/homeManagerModules/desktop/hyprland/settings.nix @@ -181,6 +181,7 @@ in { "center(1),class:(.blueman-manager-wrapped)" "center(1),class:(blueberry.py)" "center(1),class:(com.github.wwmm.easyeffects)" + "center(1),class:(gcr-prompter)" "center(1),class:(nm-connection-editor)" "center(1),class:(pavucontrol)" "float, class:^(firefox)$, title:^(Picture-in-Picture)$" @@ -190,12 +191,14 @@ in { "float,class:(nm-connection-editor)" "float,class:(pavucontrol)" "move 70% 20%, class:^(firefox)$, title:^(Picture-in-Picture)$" + "pin,class:(gcr-prompter)" "pin,class:^(firefox)$, title:^(Picture-in-Picture)$" "size 40% 60%,class:(.blueman-manager-wrapped)" "size 40% 60%,class:(blueberry.py)" "size 40% 60%,class:(com.github.wwmm.easyeffects)" "size 40% 60%,class:(nm-connection-editor)" "size 40% 60%,class:(pavucontrol)" + "stayfocused,class:(gcr-prompter)" "suppressevent maximize, class:.*" ]; diff --git a/homeManagerModules/desktop/sway/settings.nix b/homeManagerModules/desktop/sway/settings.nix index ca281ba8..bae59ed5 100644 --- a/homeManagerModules/desktop/sway/settings.nix +++ b/homeManagerModules/desktop/sway/settings.nix @@ -187,6 +187,10 @@ in { app_id = "firefox"; }; } + { + command = "focus; sticky toggle"; + criteria = {app_id = "gcr-prompter";}; + } { command = "resize set 40ppt 60ppt; move position center"; criteria = {title = "Open Folder";};