libinput: Add tappingButtonMap option (#189612)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

Changed files
+10
nixos
modules
services
x11
hardware
+10
nixos/modules/services/x11/hardware/libinput.nix
···
'';
};
+
tappingButtonMap = mkOption {
+
type = types.nullOr (types.enum [ "lrm" "lmr" ]);
+
default = null;
+
description = lib.mdDoc ''
+
Set the button mapping for 1/2/3-finger taps to left/right/middle or left/middle/right, respectively.
+
'';
+
};
+
tappingDragLock = mkOption {
type = types.bool;
default = true;
···
Option "HorizontalScrolling" "${xorgBool cfg.${deviceType}.horizontalScrolling}"
Option "SendEventsMode" "${cfg.${deviceType}.sendEventsMode}"
Option "Tapping" "${xorgBool cfg.${deviceType}.tapping}"
+
${optionalString (cfg.${deviceType}.tappingButtonMap != null) ''Option "TappingButtonMap" "${cfg.${deviceType}.tappingButtonMap}"''}
Option "TappingDragLock" "${xorgBool cfg.${deviceType}.tappingDragLock}"
Option "DisableWhileTyping" "${xorgBool cfg.${deviceType}.disableWhileTyping}"
${cfg.${deviceType}.additionalOptions}
···
"horizontalScrolling"
"sendEventsMode"
"tapping"
+
"tappingButtonMap"
"tappingDragLock"
"transformationMatrix"
"disableWhileTyping"