multitouch: Add option to invert scroll
This commit is contained in:
parent
e3337c7f05
commit
c909ea9208
|
@ -14,6 +14,13 @@ with pkgs.lib;
|
||||||
description = "Whether to enable multitouch touchpad support.";
|
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"
|
MatchIsTouchpad "on"
|
||||||
Identifier "Touchpads"
|
Identifier "Touchpads"
|
||||||
Driver "mtrack"
|
Driver "mtrack"
|
||||||
|
${optionalString config.services.xserver.multitouch.invertScroll ''
|
||||||
|
Option "ScrollUpButton" "5"
|
||||||
|
Option "ScrollDownButton" "4"
|
||||||
|
''}
|
||||||
EndSection
|
EndSection
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue