Skip to content

Commit

Permalink
synaptics driver: accelleration factor config option
Browse files Browse the repository at this point in the history
svn path=/nixos/trunk/; revision=34523
  • Loading branch information
bluescreen303 committed Jun 16, 2012
1 parent c9be63b commit bd5b06b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/services/x11/hardware/synaptics.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down Expand Up @@ -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"}"
Expand Down

0 comments on commit bd5b06b

Please sign in to comment.