dotfiles/enable_touch.sh
2019-08-27 12:32:19 +02:00

6 lines
226 B
Bash
Executable File

#!/bin/sh
devID=$( xinput list | grep "TouchPad" | sed -n -e 's/.*id=\([0-9]*\).*/\1/p' )
propID=$( xinput list-props $devID | grep "Tapping Enabled (" | sed -n -e 's/.*(\([0-9]*\)).*/\1/p' )
xinput set-prop $devID $propID 1