diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-08-28 16:38:57 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-08-28 16:38:57 +0200 |
| commit | 69336f4aebe8fce9884dae2375eabc9948f43beb (patch) | |
| tree | f45d9d6c2623d2a75603cb71fba8c321d598bab1 /bin/touchpad-toggle | |
| parent | 084809954f13205af598127ea00d37b819d927b4 (diff) | |
| download | dotfiles-69336f4aebe8fce9884dae2375eabc9948f43beb.tar.gz dotfiles-69336f4aebe8fce9884dae2375eabc9948f43beb.tar.bz2 dotfiles-69336f4aebe8fce9884dae2375eabc9948f43beb.zip | |
Added touchpad toggle
Diffstat (limited to 'bin/touchpad-toggle')
| -rwxr-xr-x | bin/touchpad-toggle | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/touchpad-toggle b/bin/touchpad-toggle new file mode 100755 index 0000000..f0a86a1 --- /dev/null +++ b/bin/touchpad-toggle @@ -0,0 +1,9 @@ +#!/bin/sh + +touchpad_name='ETPS/2 Elantech Touchpad' + +active="$(xinput list-props "$touchpad_name" | grep 'Device Enabled' | cut -f 3)" + +[ "$active" -eq 1 ] && + xinput disable "$touchpad_name" || + xinput enable "$touchpad_name" |
