Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- state=`xinput --list-props $1 | sed -nr "s/.*Enabled \([0-9]+\):\s+([0-1]).*/\1/p"`
- if [ "$state" = "1" ]; then
- xinput --set-prop $1 "Device Enabled" 0
- else
- xinput --set-prop $1 "Device Enabled" 1
- fi
Add Comment
Please, Sign In to add comment