From 0cb5673400be4d93abc598e28976bf698fd8d261 Mon Sep 17 00:00:00 2001 From: Arie Middelkoop Date: Thu, 19 Apr 2012 08:29:22 +0000 Subject: [PATCH] Some additional synaptics settings. svn path=/nixos/trunk/; revision=33837 --- modules/services/x11/hardware/synaptics.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/services/x11/hardware/synaptics.nix b/modules/services/x11/hardware/synaptics.nix index 4c5161c1b30d..752df4109340 100644 --- a/modules/services/x11/hardware/synaptics.nix +++ b/modules/services/x11/hardware/synaptics.nix @@ -58,6 +58,12 @@ let cfg = config.services.xserver.synaptics; in description = "Whether to enable palm detection (hardware support required)"; }; + horizontalScroll = mkOption { + default = true; + example = false; + description = "Whether to enable horizontal scrolling (on touchpad)"; + }; + additionalOptions = mkOption { default = ""; example = '' @@ -94,10 +100,12 @@ let cfg = config.services.xserver.synaptics; in Option "TapButton1" "${if cfg.tapButtons then "1" else "0"}" Option "TapButton2" "${if cfg.tapButtons then "2" else "0"}" Option "TapButton3" "${if cfg.tapButtons then "3" else "0"}" + ${if cfg.tapButtons then "" else ''Option "MaxTapTime" "0"''} Option "VertTwoFingerScroll" "${if cfg.twoFingerScroll then "1" else "0"}" Option "HorizTwoFingerScroll" "${if cfg.twoFingerScroll then "1" else "0"}" Option "VertEdgeScroll" "${if cfg.vertEdgeScroll then "1" else "0"}" ${if cfg.palmDetect then ''Option "PalmDetect" "1"'' else ""} + ${if cfg.horizontalScroll then "" else ''Option "HorizScrollDelta" "0"''} ${cfg.additionalOptions} EndSection '';