aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2025-12-05 15:48:43 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2025-12-05 15:48:43 +0200
commitc3aa7fe5e6c8c0928d896fc28b41dd96cf7d1a57 (patch)
treed5e10a57cfabe7c8344644106b1649e8dd4c6ba7
parent9d98f26a3dd2618d68ce56b398cf36f8d02631c7 (diff)
downloadnixos-c3aa7fe5e6c8c0928d896fc28b41dd96cf7d1a57.tar.zst
Add gestures
-rw-r--r--home/default.nix3
-rw-r--r--home/hyprland/default.nix13
2 files changed, 14 insertions, 2 deletions
diff --git a/home/default.nix b/home/default.nix
index 7e8d6bf..89827f1 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -296,8 +296,8 @@ in
enableFishIntegration = true;
enableNushellIntegration = true;
};
- playerctld.enable = true; # required by waybar
mpd-mpris.enable = true;
+ mpris-proxy.enable = true;
mpd = {
enable = true;
musicDirectory = "/media/skydrive/Music/";
@@ -322,7 +322,6 @@ in
enableSshSupport = true;
pinentry.package = pkgs.pinentry-gnome3;
};
- mpris-proxy.enable = true;
clipse = {
enable = true;
};
diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix
index 24e7357..dcd9999 100644
--- a/home/hyprland/default.nix
+++ b/home/hyprland/default.nix
@@ -56,6 +56,19 @@
enableXdgAutostart = true;
};
extraConfig = ''
+ gesture = 3, up, dispatcher, fullscreen 1
+ gesture = 3, down, dispatcher, fullscreen 1
+ gesture = 4, up, dispatcher, fullscreen 0
+ gesture = 4, down, dispatcher, fullscreen 0
+ gesture = 2, pinchout, dispatcher, splitratio 0.1 # approximating clockwise to pinchout
+ gesture = 2, pinchin, dispatcher, splitratio -0.1 # approximating anticlockwise to pinchin
+ gesture = 4, pinchin, close
+ gesture = 4, pinchout, dispatcher, exec ${pkgs.ghostty}/bin/ghostty
+ gesture = 2, left, dispatcher, workspace 1 # approximating left_up/left_down to left/right/up/down
+ gesture = 2, down, dispatcher, workspace 2
+ gesture = 2, right, dispatcher, workspace 3
+ gesture = 2, up, dispatcher, workspace 4
+
exec-once = ${pkgs.hyprlock}/bin/hyprlock --immediate;
'';
xwayland.enable = true;