aboutsummaryrefslogtreecommitdiff
path: root/scripts/toggle_syn_touchpad.sh
blob: 4f9cdae972efa6239f75927768515c3ee77f87b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

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