This commit is contained in:
Simon Vedaa 2024-06-23 23:13:57 +03:00 committed by GitHub
commit 77c96e887b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 6 deletions

View File

@ -138,13 +138,10 @@ Here is an example config:
# 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 + 10);
c = (x + 1) / 10;
in
builtins.toString (x + 1 - (c * 10));
in [ in [
"$mod, ${ws}, workspace, ${toString (x + 1)}" "$mod, code:${ws}, workspace, ${toString (x + 1)}"
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}" "$mod SHIFT, code:${ws}, movetoworkspace, ${toString (x + 1)}"
] ]
) )
10) 10)