Switch off the touchpad

From Klaus' wiki
Jump to: navigation, search

If you are working on a notebook you might want to switch off the touchpad while typing, because it is annoying having the insert pointer moved accidental by one of your ten thumbs rushing around to find the next key to press.

Place this in your .bashrc file and ensure that it is run when you login - which it in many cases will do.

#switch off the touchpad tapping and scrolling while writing
CNT=`ps -ef|grep syndaemon|wc -l`
if [[ $CNT == 1 ]]
then
   syndaemon -t -k -i 2 -d
fi

The command syndaemon switches off the touchpad tapping and scrolling, but not mouse movements while you type something on the keyboard and switches it back on after 2 seconds.

The commands above the syndaemon ensures that you'll only install one daemon on your system.