diff --git a/homes/aly/windowManagers/default.nix b/homes/aly/windowManagers/default.nix index e8b8e401..bab4bbb9 100644 --- a/homes/aly/windowManagers/default.nix +++ b/homes/aly/windowManagers/default.nix @@ -18,7 +18,7 @@ "workspace 5: work" = [{app_id = "google-chrome";} {app_id = "chromium-browser";} {app_id = "firework";}]; }; - floating.criteria = [{app_id = "org.keepassxc.KeePassXC";}]; + floating.criteria = [{app_id = "Bitwarden";} {app_id = "org.keepassxc.KeePassXC";}]; keybindings = { "${config.wayland.windowManager.sway.config.modifier}+P" = "exec ${lib.getExe pkgs.rofi-rbw-wayland}"; @@ -39,7 +39,11 @@ window.commands = [ { - command = "resize set 80ppt 80ppt; move position center; sticky toggle; "; + command = "resize set 80ppt 80ppt; move position center;"; + criteria = {app_id = "Bitwarden";}; + } + { + command = "resize set 80ppt 80ppt; move position center; sticky toggle;"; criteria = {app_id = "org.keepassxc.KeePassXC";}; } ]; @@ -55,8 +59,11 @@ input.kb_options = "ctrl:nocaps"; windowrulev2 = [ + "center(1),class:(Bitwarden)" "center(1),class:(org.keepassxc.KeePassXC)" + "float,class:(Bitwarden)" "float,class:(org.keepassxc.KeePassXC)" + "size 80% 80%,class:(Bitwarden)" "size 80% 80%,class:(org.keepassxc.KeePassXC)" "workspace 1,class:(brave-browser)" "workspace 1,class:(firefox)"