Skip to content

Commit

Permalink
Bind ^ to mail
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukagami committed Jan 19, 2024
1 parent ec89cef commit 0879215
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions home/modules/programs/my-sway/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ let
"9:🔨 9"
"10:🎲 misc"
];
extraWorkspaces = {
mail = "📧 Email";
};
wsAttrs = builtins.listToAttrs (
map
(i: { name = toString (remainder i 10); value = builtins.elemAt workspaces (i - 1); })
Expand Down Expand Up @@ -154,7 +157,7 @@ in
{ command = "systemctl --user restart waybar"; always = true; }
# Startup programs
{ command = "${cfg.browser}"; }
{ command = "thunderbird"; } # Rely on system package with plugins
{ command = "evolution"; } # Rely on system package with plugins
] ++ (if cfg.discord != null then [
{ command = "${cfg.discord}"; }
] ++ lib.lists.optional
Expand Down Expand Up @@ -255,6 +258,11 @@ in
])
(builtins.attrNames wsAttrs))
)) //
{
# Extra workspaces
"${mod}+asciicircum" = "workspace ${extraWorkspaces.mail}";
"${mod}+shift+asciicircum" = "move to workspace ${extraWorkspaces.mail}";
} //
# Move workspaces between outputs
{
"${mod}+ctrl+h" = "move workspace to output left";
Expand Down Expand Up @@ -289,8 +297,9 @@ in
{ class = "VencordDesktop"; }
{ app_id = "VencordDesktop"; }
];
"📧 Email" = [
${extraWorkspaces.mail} = [
{ app_id = "thunderbird"; }
{ app_id = "evolution"; }
];
};
# Commands
Expand Down

0 comments on commit 0879215

Please sign in to comment.