hakan@fubar:12:15:26:~$ cat bin/disablepointer
#!/bin/bash
DEVICE=`xinput --list |grep -i stick| awk '{print $5}'|sed s/id=//g`
PROPERTY=`xinput --list-props $DEVICE | grep Enabled|awk '{print $3}'| sed s/[^0-9]//g`
echo Disabling $DEVICE $PROPERTY 0
xinput --set-prop $DEVICE $PROPERTY 0
Simpler but less fun:
xinput -set-prop "DualPoint Stick" "Device Enabled" 0
No comments:
Post a Comment