diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/.bin/touchpad | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/.bin/touchpad b/bin/.bin/touchpad new file mode 100755 index 0000000..bd647e5 --- /dev/null +++ b/bin/.bin/touchpad | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | enabled=$(xinput --list-props ETPS/2\ Elantech\ Touchpad | grep "Device Enabled" | awk '{print $4}') | ||
| 4 | |||
| 5 | if [ $enabled == 1 ]; then | ||
| 6 | xinput --disable ETPS/2\ Elantech\ Touchpad | ||
| 7 | else | ||
| 8 | xinput --enable ETPS/2\ Elantech\ Touchpad | ||
| 9 | fi | ||
