From ba2cca786b29f544f7607f9318d068b3d28c2538 Mon Sep 17 00:00:00 2001 From: Jakub Stachurski Date: Thu, 15 May 2025 14:41:01 +0200 Subject: new hyprland things --- home-manager/modules/apps/desktop/hyprland.nix | 19 +++++++++++++++++-- home-manager/modules/services/syncthing.nix | 1 - 2 files changed, 17 insertions(+), 3 deletions(-) (limited to 'home-manager/modules') 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" diff --git a/home-manager/modules/services/syncthing.nix b/home-manager/modules/services/syncthing.nix index 8679947..06b94a2 100644 --- a/home-manager/modules/services/syncthing.nix +++ b/home-manager/modules/services/syncthing.nix @@ -2,7 +2,6 @@ { services.syncthing = { enable = true; - openDefaultPorts = true; }; } -- cgit v1.3.1