Files
dotfiles/.xinit-scripts/input-devices.sh
T
2024-07-14 13:55:45 +02:00

13 lines
317 B
Bash
Executable File

#!/usr/bin/env sh
touchpad_id=$(xinput list | grep -i 'touchpad' | grep -oE 'id=[0-9]+' | cut -d= -f2)
if [ -z "$touchpad_id" ]; then
echo "Touchpad not found." >&2
exit 1
fi
xinput set-prop "$touchpad_id" "libinput Tapping Enabled" 1
xinput set-prop "$touchpad_id" "libinput Natural Scrolling Enabled" 1