Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # function to enable or disable the trackpad
- DEV=`egrep -i 'synap|alps|etps' /proc/bus/input/devices|cut -d "\"" -f 2`
- STAT=`xinput list-props "$DEV"|grep "Device Enabled"|sed 's/\t//g'|cut -d ":" -f 2`
- case "${STAT}" in
- 0)
- xinput --set-prop "${DEV}" "Device Enabled" 1
- echo "Trackpad Enabled"|wall
- ;;
- 1)
- xinput --set-prop "${DEV}" "Device Enabled" 0
- echo "Trackpad Disabled"|wall
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement