mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 10:53:52 +00:00
synaptics driver: accelleration factor config option
svn path=/nixos/trunk/; revision=34523
This commit is contained in:
parent
c9be63b83e
commit
bd5b06bf86
@ -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"}"
|
||||
|
Loading…
Reference in New Issue
Block a user