aboutsummaryrefslogtreecommitdiff
path: root/bin/touchpad-enable-tap
blob: dcd530f6c16320b284b85139584aaaf82462b6b8 (plain)
1
2
3
4
5
6
7
#!/bin/sh

if xinput list | grep -iq "touchpad"; then
    device_id=$(xinput list | grep -i touchpad | awk '{print $6}' | sed 's/id=//')
    option_id=$(xinput list-props $device_id | grep -i 'Tapping Enabled'  | head -n1 | awk '{print $4}' | tr -d '():')
    xinput set-prop $device_id $option_id 1
fi
nihil fit ex nihilo