synaptics driver: accelleration factor config option

svn path=/nixos/trunk/; revision=34523
This commit is contained in:
Mathijs Kwik 2012-06-16 11:13:48 +00:00
parent c9be63b83e
commit bd5b06bf86

View File

@ -26,6 +26,11 @@ let cfg = config.services.xserver.synaptics; in
'';
};
accelFactor = mkOption {
default = "0.001";
description = "Cursor acceleration (how fast speed increases from minSpeed to maxSpeed).";
};
minSpeed = mkOption {
default = "0.6";
description = "Cursor speed factor for precision finger motion.";
@ -96,7 +101,7 @@ let cfg = config.services.xserver.synaptics; in
Option "MaxTapMove" "220"
Option "MinSpeed" "${cfg.minSpeed}"
Option "MaxSpeed" "${cfg.maxSpeed}"
Option "AccelFactor" "0.0010"
Option "AccelFactor" "${cfg.accelFactor}"
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"}"