From 9c166735aca9ee11d8bb5d5c96df720291d23d12 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 28 Apr 2024 15:02:58 -0400 Subject: [PATCH] sway: added window rules --- homeManagerModules/desktop/sway/default.nix | 61 ++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/desktop/sway/default.nix b/homeManagerModules/desktop/sway/default.nix index 3bad336c..546bd27c 100644 --- a/homeManagerModules/desktop/sway/default.nix +++ b/homeManagerModules/desktop/sway/default.nix @@ -361,7 +361,66 @@ pos = "-1920 0"; }; }; - window.titlebar = false; + window = { + titlebar = false; + commands = [ + { + command = "floating enable"; + criteria = { + app_id = "blueberry.py"; + }; + } + { + command = "floating enable"; + criteria = { + app_id = "pavucontrol"; + }; + } + { + command = "floating enable"; + criteria = { + app_id = "com.github.wwmm.easyeffects"; + }; + } + { + command = "floating enable"; + criteria = { + window_role = "pop-up"; + }; + } + { + command = "floating enable"; + criteria = { + window_role = "dialog"; + }; + } + { + command = "floating enable"; + criteria = { + window_role = "bubble"; + }; + } + { + command = "floating enable"; + criteria = { + window_type = "dialog"; + }; + } + { + command = "floating enable, resize set 70% 20%, sticky enable"; + criteria = { + title = "^Picture-in-Picture$"; + app_id = "firefox"; + }; + } + { + command = "xwayland disable"; + criteria = { + class = "vlc"; + }; + } + ]; + }; }; wayland.windowManager.sway.extraConfig = ''