From ce8684263b0744c9ac5d5a0e926d23fe4421922a Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 28 Apr 2024 21:58:04 -0400 Subject: [PATCH] sway: simplified floating rules --- homeManagerModules/desktop/sway/default.nix | 67 ++++++++------------- 1 file changed, 25 insertions(+), 42 deletions(-) diff --git a/homeManagerModules/desktop/sway/default.nix b/homeManagerModules/desktop/sway/default.nix index 3c1d724b..a5874d6f 100644 --- a/homeManagerModules/desktop/sway/default.nix +++ b/homeManagerModules/desktop/sway/default.nix @@ -363,51 +363,34 @@ pos = "-1920 0"; }; }; + floating = { + criteria = [ + { + app_id = "blueberry.py"; + } + { + app_id = "pavucontrol"; + } + { + app_id = "com.github.wwmm.easyeffects"; + } + { + window_role = "dialog"; + } + { + window_role = "pop-up"; + } + { + window_role = "bubble"; + } + { + window_type = "dialog"; + } + ]; + }; window = { titlebar = false; commands = [ - { - command = "floating enable; move position center"; - criteria = { - app_id = "blueberry.py"; - }; - } - { - command = "floating enable; move position center"; - criteria = { - app_id = "pavucontrol"; - }; - } - { - command = "floating enable; move position center"; - criteria = { - app_id = "com.github.wwmm.easyeffects"; - }; - } - { - command = "floating enable; move position center"; - criteria = { - window_role = "pop-up"; - }; - } - { - command = "floating enable; move position center"; - criteria = { - window_role = "dialog"; - }; - } - { - command = "floating enable; move position center"; - criteria = { - window_role = "bubble"; - }; - } - { - command = "floating enable; move position center"; - criteria = { - window_type = "dialog"; - }; - } { command = "floating enable; sticky toggle; resize 35% 10%"; criteria = {