diff options
Diffstat (limited to 'bin/touchpad-toggle')
| -rwxr-xr-x | bin/touchpad-toggle | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/touchpad-toggle b/bin/touchpad-toggle index f0a86a1..e4dc959 100755 --- a/bin/touchpad-toggle +++ b/bin/touchpad-toggle @@ -4,6 +4,9 @@ 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" || +if [ "$active" -eq 1 ] +then + xinput disable "$touchpad_name" +else xinput enable "$touchpad_name" +fi |
