Intercept (grab) kernel events from laptop keyboard at kernel level, so one can place an external keyboard on-top of laptop keyboard without it triggering key-events.
This way, one can comfortably have a stack of:
- couch
- human
- laptop
- keyboard
- hands busily engaged with Emacs
Depends on python and python-evdev package (doc) in Arch Linux.
Run the script, which prints all devices it can find, and copy-paste the name of the device into the variable laptop_keyboard_name
in the script:
sudo python disable-keyboard.py
Released under GPL-3