toggle-touchpad

0.1.1 • Public • Published

toggle-touchpad

Turn on/off an xinput touchpad device

Example

$ ttp --disable

Disables the touchpad; goodbye 🐭!

$ ttp -e

Enables 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

/toggle-touchpad/

    Package Sidebar

    Install

    npm i toggle-touchpad

    Weekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    6.08 kB

    Total Files

    7

    Last publish

    Collaborators

    • jfowler