feat: modularize aerospace workflow for easier configs
This commit is contained in:
parent
9f12b970b9
commit
1cedf23655
6 changed files with 121 additions and 103 deletions
18
modules/home/rsydn/programs/aerospace/workspaces.nix
Normal file
18
modules/home/rsydn/programs/aerospace/workspaces.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ lib }:
|
||||
let
|
||||
inherit (builtins) listToAttrs map toString;
|
||||
|
||||
workspaceNumbers = map toString (lib.range 1 9);
|
||||
|
||||
workspaceFocusBindings = listToAttrs (map (ws: {
|
||||
name = "alt-${ws}";
|
||||
value = "workspace ${ws}";
|
||||
}) workspaceNumbers);
|
||||
|
||||
workspaceSendBindings = listToAttrs (map (ws: {
|
||||
name = "alt-shift-${ws}";
|
||||
value = "move-node-to-workspace ${ws}";
|
||||
}) workspaceNumbers);
|
||||
in {
|
||||
inherit workspaceNumbers workspaceFocusBindings workspaceSendBindings;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue