Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- TOUCHPAD_ID=`xinput | grep 'Synaptics TouchPad' | cut -f 2 | cut -f 2 -d =`
- TOUCHPAD_STATUS=`xinput --list-props 11 | grep 'Device Enabled' | cut -f 3`
- TOUCHPAD_REGISTER=`xinput --list-props 11 | grep 'Device Enabled' | cut -f 2 | cut -f 2 -d '(' | cut -f 1 -d ')'`
- if [ $TOUCHPAD_STATUS -eq 1 ] ; then
- TOUCHPAD_STATUS=0
- else
- TOUCHPAD_STATUS=1
- fi
- xinput --set-prop $TOUCHPAD_ID $TOUCHPAD_REGISTER $TOUCHPAD_STATUS
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement