diff options
Diffstat (limited to 'scripts/toggle_syn_touchpad.sh')
| -rwxr-xr-x | scripts/toggle_syn_touchpad.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/toggle_syn_touchpad.sh b/scripts/toggle_syn_touchpad.sh index 38dba25..4f9cdae 100755 --- a/scripts/toggle_syn_touchpad.sh +++ b/scripts/toggle_syn_touchpad.sh @@ -1,8 +1,8 @@ #!/bin/sh -STATE=`synclient -l | grep TouchpadOff | awk '{ print $3 }'`; +STATE="$(synclient -l | grep TouchpadOff | awk '{ print $3 }')"; -if [ "$STATE" == "0" ]; then +if [ "$STATE" = "0" ]; then synclient TouchpadOff=1; else synclient TouchpadOff=0 fi @@ -10,7 +10,7 @@ fi # Forces break of touchpad functions while typing # 1 second follow interval. -if [ "$STATE" == "1" ]; then +if [ "$STATE" = "1" ]; then syndaemon -i 1 -d; else killall syndaemon fi |
