From 8094a09a90ea96965878b953531c5ad762a11d9a Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 1 Nov 2024 13:36:21 +0100 Subject: improve DE scripts to be more POSIX compliant --- scripts/toggle_syn_touchpad.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/toggle_syn_touchpad.sh') 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 -- cgit v1.2.3