From 6c20915867378b468b8847d34a28f6fdb24877e5 Mon Sep 17 00:00:00 2001 From: Benjamin Morrison Date: Tue, 25 Jan 2022 22:30:22 -0500 Subject: script to enable touchpad tapping / tap-to-click --- bin/touchpad_enable_tap.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/touchpad_enable_tap.sh (limited to 'bin') diff --git a/bin/touchpad_enable_tap.sh b/bin/touchpad_enable_tap.sh new file mode 100755 index 0000000..c57a4aa --- /dev/null +++ b/bin/touchpad_enable_tap.sh @@ -0,0 +1,16 @@ +#!/bin/sh +set -eu + +# This enables tapping, like tap-to-click, on the Thinkpad T14s Gen2 AMD. +# The touchpad ID changes between reboots sometimes. +# +# We need property 318, "Tapping Enabled". +# Available properties viewable with: +# xinput list-props $TOUCHPAD_ID +# +# Requires: +# xinput, libinput + +TOUCHPAD_ID="$(xinput | grep Touchpad | awk '{print $6}' | cut -d'=' -f2)" + +/usr/bin/xinput set-prop "$TOUCHPAD_ID" 318 1 -- cgit 1.4.1