Toggle the Touchpad on or off

if [ $(synclient -l | grep TouchpadOff | awk '{print $3}') = "2" ]; then synclient TouchpadOff=1; elif [ $(synclient -l | grep TouchpadOff | awk '{print $3}') == "1" ]; then synclient TouchpadOff=2; else synclient TouchpadOff=2; fi
This command toggles the touchpad on and off, when it's on, the right side scroll strip (annoying) and the tap-clicking are disabled, you can change this by changing occurances of 2 in the command to 0. this whole command can then be given a keyboard shortcut so that the touchpad is disableable without using a special fn key (which linux doesn't recognize on some computers) or a seperate button.

2010-01-26 07:52:55

4 Alternatives + Submit Alt

What Others Think

wtf? That's a good command. I own a dell and it doesn't let you turn off the touchpad with a key combo or anything else. by making this command and assigning it a key combo, I've solved that problem.
GinoMan2440 · 654 weeks and 2 days ago
Toggle the Touchpad on or off,On some laptops, there is a key combination that usually involves holding down the FN key and pressing the touchpad button. On other laptops, you might have to hold down the FN key and press F7. One of my friends asked me to hire assignment help uk to complete work on time. Please refer to your laptop's user manual on how to toggle the touchpad on or off if you are unsure.On a laptop, you can also press ctrl + F5 or Fn + ctrl + F5 to turn off the touchpad.When you want to type without using the Touchpad, you can turn it off.1. Push the upper-left corner of the Touchpad to toggle it on and off. A light appears on the upper-left corner of the Touchpad when enabled.
jamewills · 16 weeks and 3 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: