Author: amiddelk
Date: Thu Apr 19 08:29:22 2012
New Revision: 33837
URL: https://nixos.org/websvn/nix/?rev=33837&sc=1
Log:
Some additional synaptics settings.
Modified:
nixos/trunk/modules/services/x11/hardware/synaptics.nix
Modified: nixos/trunk/modules/services/x11/hardware/synaptics.nix
==============================================================================
--- nixos/trunk/modules/services/x11/hardware/synaptics.nix Thu Apr 19
08:28:54 2012 (r33836)
+++ nixos/trunk/modules/services/x11/hardware/synaptics.nix Thu Apr 19
08:29:22 2012 (r33837)
@@ -58,6 +58,12 @@
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 @@
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
'';
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits