From aed685dd909dfa81c2a9767824f4385afce99855 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 15 May 2024 00:09:51 -0400 Subject: [PATCH] sway: float and center keepassxc --- homeManagerModules/desktop/sway/default.nix | 59 +++++++-------------- 1 file changed, 20 insertions(+), 39 deletions(-) diff --git a/homeManagerModules/desktop/sway/default.nix b/homeManagerModules/desktop/sway/default.nix index 5a3b98be..682d83a2 100644 --- a/homeManagerModules/desktop/sway/default.nix +++ b/homeManagerModules/desktop/sway/default.nix @@ -354,33 +354,16 @@ }; floating = { criteria = [ - { - app_id = "Bitwarden"; - } - { - app_id = "blueberry.py"; - } - { - app_id = ".blueman-manager-wrapped"; - } - { - app_id = "pavucontrol"; - } - { - app_id = "com.github.wwmm.easyeffects"; - } - { - window_role = "dialog"; - } - { - window_role = "pop-up"; - } - { - window_role = "bubble"; - } - { - window_type = "dialog"; - } + {app_id = ".blueman-manager-wrapped";} + {app_id = "Bitwarden";} + {app_id = "blueberry.py";} + {app_id = "com.github.wwmm.easyeffects";} + {app_id = "org.keepassxc.KeePassXC";} + {app_id = "pavucontrol";} + {window_role = "bubble";} + {window_role = "dialog";} + {window_role = "pop-up";} + {window_type = "dialog";} ]; }; window = { @@ -394,22 +377,20 @@ }; } { - command = "resize set 40ppt 60ppt"; - criteria = { - app_id = "blueberry.py"; - }; + command = "resize set 40ppt 60ppt; move position center"; + criteria = {app_id = "blueberry.py";}; } { - command = "resize set 40ppt 60ppt"; - criteria = { - app_id = ".blueman-manager-wrapped"; - }; + command = "resize set 80ppt 80ppt; move position center"; + criteria = {app_id = "org.keepassxc.KeePassXC";}; } { - command = "resize set 40ppt 60ppt"; - criteria = { - app_id = "pavucontrol"; - }; + command = "resize set 40ppt 60ppt; move position center"; + criteria = {app_id = ".blueman-manager-wrapped";}; + } + { + command = "resize set 40ppt 60ppt; move position center"; + criteria = {app_id = "pavucontrol";}; } ]; };