dotfiles_deprecated/scripts/touchpad_enable_tapping.sh

7 lines
230 B
Bash
Raw Permalink Normal View History

2018-03-01 00:47:14 +01:00
#!/bin/bash
device=$(xinput | grep Touchpad | grep -o "id=[0-9]*" | cut -f 2 -d "=")
prop=$(xinput list-props $device | grep "Tapping Enabled" | head -n 1 | grep -o "([0-9]*)" | grep -o "[0-9]*")
xinput set-prop $device $prop 1