Method 1, I disable my clickpad permanently. I run this script to toggle on/off my clickpad:
#!/bin/bash
#Toggle touchpad
SYNSTATE=$(synclient -l | grep TouchpadOff | awk '{ print $3}')
# change state
if [ $SYNSTATE = 0 ]; then
synclient touchpadoff=1
elif [ $SYNSTATE = 1 ]; then
synclient touchpadoff=0
fi
Method 2, I use /usr/bin/syndaemon to disable my clickpad only when I am typing. The steps:
- Make ~/.xprofile
#!/bin/sh
# Customize X environment
#
# Activate syndaemon for monitoring keyboard activity and disabling # the touchpad when the keyboard is being used.
/usr/bin/syndaemon -td - Add these lines on the top of /usr/bin/startkde (if you use KDE as the default desktop manager) in order to make X server executes ~/.xprofile when it starts.
if [ -r /etc/xprofile ]; then
source /etc/xprofile
fi
if [ -r $HOME/.xprofile ]; then
source $HOME/.xprofile
fi - Restart X server.
1 comment:
this solution is elegant (method2)
usually people do not get the silly things until someone else point it out.
i hope i had known this couple of months back.... (for refereces http://www.linuxquestions.org/questions/slackware-14/slackware-13-1-on-a-netbook-asus-eee-1005ha-811813/ )
Post a Comment