synaptics: add 'additionalOptions' option
svn path=/nixos/trunk/; revision=31469
This commit is contained in:
parent
6385d51f7e
commit
cab4a28361
@ -18,7 +18,7 @@ let cfg = config.services.xserver.synaptics; in
|
|||||||
|
|
||||||
dev = mkOption {
|
dev = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
example = "/dev/input/event0";
|
example = "/dev/input/event0";
|
||||||
description =
|
description =
|
||||||
''
|
''
|
||||||
Path for touchpad device. Set to null to apply to any
|
Path for touchpad device. Set to null to apply to any
|
||||||
@ -46,6 +46,17 @@ let cfg = config.services.xserver.synaptics; in
|
|||||||
description = "Whether to enable vertical edge drag-scrolling.";
|
description = "Whether to enable vertical edge drag-scrolling.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
additionalOptions = mkOption {
|
||||||
|
default = "";
|
||||||
|
example = ''
|
||||||
|
Option "RTCornerButton" "2"
|
||||||
|
Option "RBCornerButton" "3"
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Additional options for synaptics touchpad driver.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -74,6 +85,7 @@ let cfg = config.services.xserver.synaptics; in
|
|||||||
Option "VertTwoFingerScroll" "${if cfg.twoFingerScroll then "1" else "0"}"
|
Option "VertTwoFingerScroll" "${if cfg.twoFingerScroll then "1" else "0"}"
|
||||||
Option "HorizTwoFingerScroll" "${if cfg.twoFingerScroll then "1" else "0"}"
|
Option "HorizTwoFingerScroll" "${if cfg.twoFingerScroll then "1" else "0"}"
|
||||||
Option "VertEdgeScroll" "${if cfg.vertEdgeScroll then "1" else "0"}"
|
Option "VertEdgeScroll" "${if cfg.vertEdgeScroll then "1" else "0"}"
|
||||||
|
${cfg.additionalOptions}
|
||||||
EndSection
|
EndSection
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user