feat: modularize aerospace workflow for easier configs

This commit is contained in:
Rasyidan Akbar F. 2025-10-01 16:19:12 +07:00
commit 1cedf23655
6 changed files with 121 additions and 103 deletions

View 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;
}