linux-utils/touchtog

10 lines
158 B
Text
Raw Permalink Normal View History

2017-01-24 01:46:57 +00:00
#!/bin/sh
off=$(synclient -l | awk -F '= ' '/TouchpadOff/{print $2}')
if [ $off = 0 ]; then
synclient TouchpadOff=1
else
synclient TouchpadOff=0
fi