synaptics: add fingersMap option
This commit is contained in:
parent
0eb86647b3
commit
118096fc0b
@ -87,6 +87,14 @@ in {
|
|||||||
apply = map toString;
|
apply = map toString;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fingersMap = mkOption {
|
||||||
|
type = types.listOf types.int;
|
||||||
|
default = [1 2 3];
|
||||||
|
example = [1 3 2];
|
||||||
|
description = "Remap several-fingers taps.";
|
||||||
|
apply = map toString;
|
||||||
|
};
|
||||||
|
|
||||||
palmDetect = mkOption {
|
palmDetect = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
@ -139,6 +147,9 @@ in {
|
|||||||
Option "ClickFinger1" "${builtins.elemAt cfg.buttonsMap 0}"
|
Option "ClickFinger1" "${builtins.elemAt cfg.buttonsMap 0}"
|
||||||
Option "ClickFinger2" "${builtins.elemAt cfg.buttonsMap 1}"
|
Option "ClickFinger2" "${builtins.elemAt cfg.buttonsMap 1}"
|
||||||
Option "ClickFinger3" "${builtins.elemAt cfg.buttonsMap 2}"
|
Option "ClickFinger3" "${builtins.elemAt cfg.buttonsMap 2}"
|
||||||
|
Option "TapButton1" "${builtins.elemAt cfg.fingersMap 0}"
|
||||||
|
Option "TapButton2" "${builtins.elemAt cfg.fingersMap 1}"
|
||||||
|
Option "TapButton3" "${builtins.elemAt cfg.fingersMap 2}"
|
||||||
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"}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user