From c909ea920855c21beba3b9fca4b59432ca1ecc01 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 14 Jul 2012 18:02:46 -0400 Subject: [PATCH] multitouch: Add option to invert scroll --- modules/services/x11/hardware/multitouch.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/services/x11/hardware/multitouch.nix b/modules/services/x11/hardware/multitouch.nix index 3aa2760f3f0e..35e30ccf76b3 100644 --- a/modules/services/x11/hardware/multitouch.nix +++ b/modules/services/x11/hardware/multitouch.nix @@ -14,6 +14,13 @@ with pkgs.lib; description = "Whether to enable multitouch touchpad support."; }; + invertScroll = mkOption { + default = false; + example = true; + type = types.bool; + description = "Whether to invert scrolling direction à la OSX Lion"; + }; + }; }; @@ -29,6 +36,10 @@ with pkgs.lib; MatchIsTouchpad "on" Identifier "Touchpads" Driver "mtrack" + ${optionalString config.services.xserver.multitouch.invertScroll '' + Option "ScrollUpButton" "5" + Option "ScrollDownButton" "4" + ''} EndSection '';