blob: 38dba259c008cbf22cb7e1fcb4c50053c2462e7c (
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
|