From aed5e4c05715cd1eb5a0b35e09923b1407fb9b16 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Mon, 1 Jan 2024 17:59:39 +0100 Subject: [PATCH] Touchpad --- modules/xconfig.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/xconfig.nix b/modules/xconfig.nix index bca1672..71ab4a6 100644 --- a/modules/xconfig.nix +++ b/modules/xconfig.nix @@ -10,6 +10,15 @@ in { touchpad.enableProperConfig = mkEnableOption "Enable the only correct touchpad settings"; + touchpad.accelProfile = mkOption { + type = types.enum [ "flat" "adaptive" ]; + default = "adaptive"; + example = "flat"; + description = '' + Usually want this on adaptive. + ''; + }; + mouse.accelProfile = mkOption { type = types.enum [ "flat" "adaptive" ]; default = "flat"; @@ -59,6 +68,7 @@ in { accelProfile = cfg.mouse.accelProfile; middleEmulation = false; }; + touchpad.accelProfile = cfg.touchpad.accelProfile; touchpad = mkIf cfg.touchpad.enableProperConfig { tapping = false; disableWhileTyping = true;