aly/wm: center and float bitwarden gui

This commit is contained in:
Aly Raffauf 2024-08-02 07:37:56 -04:00
parent c10afb3204
commit 57747566b4

View file

@ -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}";
@ -38,6 +38,10 @@
};
window.commands = [
{
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)"