From 6d2a88231a0257e8f21b29022f0b69c8a8f2231b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 11 Jan 2016 19:29:14 +0100 Subject: let scripts deciede on its own which shell they use 1) make all scripts executable 2) remove shells in exec calls 3) add toggle_touchpad script to repo --- scripts/toggle_syn_touchpad.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/toggle_syn_touchpad.sh (limited to 'scripts/toggle_syn_touchpad.sh') 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 -- cgit v1.2.3