Temporarily Disable Touchpad While Typing

One thing that I noticed is when typing my thumb or part of my hand will touch the mouse sensor pad and click it. Sending whatever I was typing to another place. The easy fix was to disable clicking via the touch pad but I found that I was used to it so here is a easy script to fix the problem.

Ensure you have tapping enabled.

Okay, once this is done we will be using a little tool called syndaemon. if you want to know more about this tool you can man syndaemon. But, my basic command should do the trick for you.

Open your terminal again and type in the following:

syndaemon -d -t -i 6

Okay, I’ll go through what this did for you.
# the -d flag tells syndaemon to run all the time and monitor the keyboard
# the -t flag tells it to only disable tapping and scrolling, not pointer movement.
# the -i flag is how long (in seconds) to disable the touchpad *after* the last keypress

So in a nutshell this will monitor the keyboard for activity and disable tapping for a set number of seconds. You will still be able to have pointer movement but, the click function will be temporally disabled. In the example above I have it set for 6 seconds.

You could try adding that command to your gnome sessions (System > Preferences > Sessions) to have it load at gnome login. This way it will always startup and run.

NOTE: You do NOT have to be root or use the sudo command for this to work.

If you found this helpful I would like to hear from you.

Tags: , , , , , , , , , , ,

Leave a Reply


Bad Behavior has blocked 76 access attempts in the last 7 days.