I have a dm3t laptop and when im using the keyboard I frequently accidentally touch it and cause some mouse event. How can I make a shortcut key that toggles the mousepad on and off?
-
In Ubuntu 18.04 [`gsettings` command](https://askubuntu.com/a/1072472/853796) can be used to toggle the touchpad. – Samuli Asmala Sep 05 '18 at 17:47
2 Answers
If you are using Synaptics Touchpad, you can toggle the touchpad on and off by using synclient. To turn the pad off, run synclient TouchpadOff=1, and to turn it back on use synclient TouchpadOff=0.
You can set up keyboard shortcuts by System > Preferences > Keyboard Shortcuts.
If you're not sure if you are using Synaptics Touchpad, run xinput list, and one of the entries will mention Synaptics if you are.
- 3,756
- 3
- 27
- 24
You could use Touchfreeze
By using the following command you can install it from terminal
sudo apt-get install touchfreeze
This application automatically disables touchpad temporarily when you type something and also enables it back after you stopped typing. It has a GUI and some configuration options like a customizable switch-delay.
So you'll need no shortcut-key.
- 80,647
- 59
- 193
- 232
- 32,845
- 41
- 101
- 115