Home Gen251 @ 2024-05-15-11:53

This commit is contained in:
Jonas Röger 2024-05-15 11:53:31 +02:00
parent d3a1b25280
commit 584e3ae813

View File

@ -46,14 +46,11 @@
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10} # binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
builtins.concatLists (builtins.genList ( builtins.concatLists (builtins.genList (
x: let x: let
ws = let ws = builtins.toString (x + 1);
c = (x + 1) / 8;
in
builtins.toString (x + 1 - (c * 8));
in [ in [
"$mod, ${ws}, workspace, ${toString (x + 1)}" "$mod, ${ws}, workspace, ${ws}"
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}" "$mod SHIFT, ${ws}, movetoworkspace, ${ws}"
"$mod CTRL, ${ws}, movetoworkspacesilent, ${toString (x + 1)}" "$mod CTRL, ${ws}, movetoworkspacesilent, ${ws}"
] ]
) )
8) 8)