Skip to content

Instantly share code, notes, and snippets.

@tyalie
Last active September 12, 2020 16:07
Show Gist options
  • Save tyalie/5f5cd9ade915f715768dec0a05d3741c to your computer and use it in GitHub Desktop.
Save tyalie/5f5cd9ade915f715768dec0a05d3741c to your computer and use it in GitHub Desktop.
# Disable keyboard on Gnome Wayland without disabling the screen or mouse
# This is incredibly useful when the only space left
# to take physical notes is on your keyboard
#
# I've last used it on a prolonged train drive
# 1. Get the event number of the device to be blocked
evtest # remember the path to the device
# 2. block keyboard
sleep 1; evtest --grab "/dev/input/eventX"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment