Skip to content

Commit

Permalink
Let bitwarden be floating
Browse files Browse the repository at this point in the history
natsukagami committed Jan 20, 2024
1 parent 0879215 commit bc0cea6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions home/modules/programs/my-sway/default.nix
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit bc0cea6

Please sign in to comment.