diff options
Diffstat (limited to 'scripts/toggle_syn_touchpad.sh')
| -rwxr-xr-x | scripts/toggle_syn_touchpad.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/toggle_syn_touchpad.sh b/scripts/toggle_syn_touchpad.sh new file mode 100755 index 0000000..9cc88a9 --- /dev/null +++ b/scripts/toggle_syn_touchpad.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +STATE=`synclient -l | grep TouchpadOff | awk '{ print $3 }'`; + +if [ "$STATE" == "0" ]; then +synclient TouchpadOff=1; else +synclient TouchpadOff=0 +fi + + +# Forces break of touchpad functions while typing +# 1 second follow interval. +if [ "$STATE" == "1" ]; then +syndaemon -i 1 -d; else +killall syndaemon +fi |
