diff options
Diffstat (limited to '')
| -rw-r--r-- | home-manager/modules/apps/desktop/hyprland.nix | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/home-manager/modules/apps/desktop/hyprland.nix b/home-manager/modules/apps/desktop/hyprland.nix index 0e77ee9..dd9e587 100644 --- a/home-manager/modules/apps/desktop/hyprland.nix +++ b/home-manager/modules/apps/desktop/hyprland.nix @@ -167,7 +167,6 @@ with lib; "$mod, mouse_up, workspace, e-1" ] ++ ( # workspaces - # binds $mod + [shift +] {1..10} to [move to] workspace {1..10} builtins.concatLists (builtins.genList ( x: let ws = let @@ -175,12 +174,28 @@ with lib; in builtins.toString (x + 1 - (c * 10)); in [ + # binds $mod + [shift +] {1..10} to [move to] workspace {1..10} "$mod, ${ws}, workspace, ${toString (x + 1)}" "$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}" + + # Move workspace {1..10} to current monitor + "CTRL ALT $mod , ${ws}, focusworkspaceoncurrentmonitor, ${toString(x + 1)}" ] ) 10) - ); + ) ++ ( + # Monitor {0..4} --> Key {1..5} + builtins.concatLists (builtins.genList ( + x: let + mon = builtins.toString(x); + key = builtins.toString(x + 1); + in [ + + # Move current workspace to a monitor {1..4} + "CTRL ALT SHIFT $mod, ${key}, movecurrentworkspacetomonitor, ${mon} " + ] + ) + 4)); bindm = [ "$mod, mouse:272, movewindow" |
