nixos/libinput: Add transformation matrix option
This commit is contained in:
parent
9675a865c9
commit
4598ff3bb8
1 changed files with 11 additions and 0 deletions
|
@ -163,6 +163,15 @@ let cfg = config.services.xserver.libinput;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
transformationMatrix = mkOption {
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
A string of 9 space-separated floating point numbers. Sets the transformation matrix to
|
||||||
|
the 3x3 matrix where the first row is (abc), the second row is (def) and the third row is (ghi).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
disableWhileTyping = mkOption {
|
disableWhileTyping = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -196,6 +205,7 @@ let cfg = config.services.xserver.libinput;
|
||||||
${optionalString (cfg.${deviceType}.accelSpeed != null) ''Option "AccelSpeed" "${cfg.${deviceType}.accelSpeed}"''}
|
${optionalString (cfg.${deviceType}.accelSpeed != null) ''Option "AccelSpeed" "${cfg.${deviceType}.accelSpeed}"''}
|
||||||
${optionalString (cfg.${deviceType}.buttonMapping != null) ''Option "ButtonMapping" "${cfg.${deviceType}.buttonMapping}"''}
|
${optionalString (cfg.${deviceType}.buttonMapping != null) ''Option "ButtonMapping" "${cfg.${deviceType}.buttonMapping}"''}
|
||||||
${optionalString (cfg.${deviceType}.calibrationMatrix != null) ''Option "CalibrationMatrix" "${cfg.${deviceType}.calibrationMatrix}"''}
|
${optionalString (cfg.${deviceType}.calibrationMatrix != null) ''Option "CalibrationMatrix" "${cfg.${deviceType}.calibrationMatrix}"''}
|
||||||
|
${optionalString (cfg.${deviceType}.transformationMatrix != null) ''Option "TransformationMatrix" "${cfg.${deviceType}.transformationMatrix}"''}
|
||||||
${optionalString (cfg.${deviceType}.clickMethod != null) ''Option "ClickMethod" "${cfg.${deviceType}.clickMethod}"''}
|
${optionalString (cfg.${deviceType}.clickMethod != null) ''Option "ClickMethod" "${cfg.${deviceType}.clickMethod}"''}
|
||||||
Option "LeftHanded" "${xorgBool cfg.${deviceType}.leftHanded}"
|
Option "LeftHanded" "${xorgBool cfg.${deviceType}.leftHanded}"
|
||||||
Option "MiddleEmulation" "${xorgBool cfg.${deviceType}.middleEmulation}"
|
Option "MiddleEmulation" "${xorgBool cfg.${deviceType}.middleEmulation}"
|
||||||
|
@ -227,6 +237,7 @@ in {
|
||||||
"sendEventsMode"
|
"sendEventsMode"
|
||||||
"tapping"
|
"tapping"
|
||||||
"tappingDragLock"
|
"tappingDragLock"
|
||||||
|
"transformationMatrix"
|
||||||
"disableWhileTyping"
|
"disableWhileTyping"
|
||||||
"additionalOptions"
|
"additionalOptions"
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue