[ create a new paste ] login | about

Project: linuxcritic
Link: http://linuxcritic.codepad.org/8Z82HORQ    [ raw code | fork ]

Plain Text, pasted on May 2:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# toggle synaptic touchpad on/off

# get current state
SYNSTATE=$(synclient -l | grep TouchpadOff | awk '{ print $3 }')

# change to other state
if [ $SYNSTATE = 0 ]; then
    synclient touchpadoff=1
elif [ $SYNSTATE = 1 ]; then
    synclient touchpadoff=0
else
    echo "Couldn't get touchpad status from synclient"
    exit 1
fi
exit 0


Create a new paste based on this one


Comments: