toggle-touchpad
v0.1.1
Published
toggle laptop touchpad on/off
Readme
toggle-touchpad
Turn on/off an xinput touchpad device
Example
$ ttp --disableDisables the touchpad; goodbye :mouse:!
$ ttp -eEnables that touchpad back on.
$ ttp --list
↳ DLL0704:01 03AB:12CD Touchpad id=11 [slave pointer (2)]List the xinput Device Id for the touchpad.
Can also use this in a script:
var Toggle = require('toggle-touchpad')
var ttp = new Toggle()
if (!wantingToUseMouse) {
ttp.disable() // touchpad disabled
} else {
// do some code that uses the touchpad
}License
MIT
