From ff115288085b9d046cf85de4cdaf167a075eb06f Mon Sep 17 00:00:00 2001 From: willemml Date: Tue, 14 Nov 2023 20:26:23 -0800 Subject: [PATCH] Configures Hyprland gestures on trackpad --- home/linux/hyprland.nix | 20 ++++++++++++++++++++ nixos/profiles/desktop.nix | 2 ++ 2 files changed, 22 insertions(+) diff --git a/home/linux/hyprland.nix b/home/linux/hyprland.nix index df95aaf..6993c11 100644 --- a/home/linux/hyprland.nix +++ b/home/linux/hyprland.nix @@ -19,6 +19,26 @@ services.mako.enable = true; wayland.windowManager.hyprland = { + settings = { + input = { + sensitivity = 0.4; + accel_profile = "adaptive"; + touchpad = { + natural_scroll = true; + scroll_factor = 0.45; + tap-and-drag = true; + }; + }; + + gestures = { + workspace_swipe = true; + workspace_swipe_fingers = 3; + workspace_swipe_cancel_ratio = 0.5; + workspace_swipe_distance = 2000; + workspace_swipe_invert = true; + }; + }; + enable = true; }; diff --git a/nixos/profiles/desktop.nix b/nixos/profiles/desktop.nix index 7419091..f7972e7 100644 --- a/nixos/profiles/desktop.nix +++ b/nixos/profiles/desktop.nix @@ -22,6 +22,8 @@ layout = globals.keyboard.layout; xkbVariant = globals.keyboard.variant; + synaptics.enable = false; + libinput = { enable = true; touchpad.tapping = true;