update uninstall script, renames
This commit is contained in:
10
scripts/toggle-touchpad
Executable file
10
scripts/toggle-touchpad
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
ID=`xinput list | grep -Eio '(touchpad|glidepoint)\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
|
||||
STATE=`xinput list-props $ID | grep 'Device Enabled' | awk '{print $4}'`
|
||||
if [ $STATE -eq 1 ]
|
||||
then
|
||||
xinput disable $ID
|
||||
else
|
||||
xinput enable $ID
|
||||
fi
|
Reference in New Issue
Block a user