You want shortcut, but you can easily put 2 scripts on the desktop and execute them.
First, go to terminal. Type xinput
.
Output Example:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ Laptop_Integrated_Webcam_1.3M id=10 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
↳ Dell WMI hotkeys
Find the Touchpad. In this example, the touchpad is listed as id=12
Create the first script with this:
#!/bin/bash
xinput enable 12
Save it and name it touchpadenable.sh
, and in terminal, mark it as executable with:
chmod +x touchpadenable.sh
Do the exact same thing again, but rename the file as touchpaddisable.sh
(or whatever), and instead of
xinput enable 12
Use the command
xinput disable 12
Save, mark as executable, and you should be able to run the scripts from the desktop. Note: you may have to right-click the scripts, click properties, and allow it to be executed.