From bc0cea6575c985e4736d1f3b200f334e5537b757 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Sat, 20 Jan 2024 12:45:59 +0100 Subject: [PATCH] Let bitwarden be floating --- home/modules/programs/my-sway/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/home/modules/programs/my-sway/default.nix b/home/modules/programs/my-sway/default.nix index f48c395..8732279 100644 --- a/home/modules/programs/my-sway/default.nix +++ b/home/modules/programs/my-sway/default.nix @@ -305,9 +305,18 @@ in # Commands window.commands = [ { criteria = { title = ".*"; }; command = "inhibit_idle fullscreen"; } - { criteria = { app_id = ".*float.*"; }; command = "floating enable"; } - { criteria = { class = ".*float.*"; }; command = "floating enable"; } - ]; + ] ++ ( + # Floating assignments + let + criterias = [ + { app_id = ".*float.*"; } + { class = ".*float.*"; } + { title = "Extension: .*Bitwarden.*"; } + ]; + toCommand = criteria: { inherit criteria; command = "floating enable"; }; + in + map toCommand criterias + ); # Focus focus.followMouse = true; focus.mouseWarping = true;