website/content/blog/togglingxinput.md
2020-02-16 17:46:18 -05:00

648 B

title date draft tags
Toggling X Input 2020-01-07T20:46:32-05:00 false
linux

On X, we can easily enable or disable input devices using the xinput command. This is a great use case when you're tired of accidentally hitting the red Thinkpad nub or having your palm be recognized when drawing with a pen.

Running the xinput command performs the action temporarily. Your default settings will be restored upon a reboot.

To list xinput devices run:

xinput

To disable a device:

xinput disable [id]

To enable a device:

xinput enable [id]

The ids are listed when you list the devices.