From 450e2704dd5053186a0d30a01ff995ceac17bc57 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 23 Mar 2012 10:50:43 +0100 Subject: toggle_touchpad.sh: Exit if synclient is not installed --- .scripts/toggle_touchpad.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to '.scripts') diff --git a/.scripts/toggle_touchpad.sh b/.scripts/toggle_touchpad.sh index 64c018b..21e4e02 100755 --- a/.scripts/toggle_touchpad.sh +++ b/.scripts/toggle_touchpad.sh @@ -1,5 +1,7 @@ #!/bin/bash +which synclient &> /dev/null || exit + exec synclient TouchpadOff=$((1-$(synclient | awk '/TouchpadOff/ { print $3 }'))) device_id=$(xinput list | sed -n "s/^.*Synaptics.*id=\([^\t]*\).*$/\\1/p") -- cgit