summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-05-15 14:41:01 +0200
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-05-18 11:31:37 +0200
commitba2cca786b29f544f7607f9318d068b3d28c2538 (patch)
treec153d97d35e5e69fae2ca964a3d8f6a2a1bb23d0
parentb97209171ce216d3f31ed42856c5d5d95c808025 (diff)
new hyprland things
-rw-r--r--home-manager/modules/apps/desktop/hyprland.nix19
-rw-r--r--home-manager/modules/services/syncthing.nix1
2 files changed, 17 insertions, 3 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"
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;
};
}