From c3aa7fe5e6c8c0928d896fc28b41dd96cf7d1a57 Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Fri, 5 Dec 2025 15:48:43 +0200 Subject: Add gestures --- home/hyprland/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'home/hyprland') 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; -- cgit v1.2.3-70-g09d2