The keyboard on the Dell XPS is far too sensitive and I would prefer for the touchpad to be disabled while a mouse is plugged in.
-
In the Terminal, determine the device number that corresponds to your touchpad by running:
xinput
For instance, this is the output I get on my laptop:
$ xinput ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ SteelSeries Kana Gaming Mouse id=10 [slave pointer (2)] ⎜ ↳ DLL075B:01 06CB:76AF 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)] ↳ Integrated_Webcam_HD id=11 [slave keyboard (3)] ↳ Intel Virtual Button driver id=13 [slave keyboard (3)] ↳ Intel HID events id=14 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=15 [slave keyboard (3)] ↳ Dell WMI hotkeys id=17 [slave keyboard (3)]
So my device number is
12
. -
Copy
toggle-touchpad
somewhere on your$PATH
and make it executable. -
Replace the
device_number
variable intoggle-touchpad
as appropriate. -
Under System Settings > Keyboard > Shortcuts > Custom Shortcuts, create a new shortcut, name it (e.g.
"Toggle touchpad on/off"
), and set the command totoggle-touchpad
. I set the shortcut toSuper-Z
on mine (Super
refers to the Windows key). -
Now you can hit
Super-Z
to toggle the touchpad on/off.
Line 10 - lost the letter "n" in the word "then".