Skip to content

Instantly share code, notes, and snippets.

@aerth
Last active May 9, 2017 20:21
Show Gist options
  • Save aerth/dbecac1408f809e38cf1af6e10d3e6e7 to your computer and use it in GitHub Desktop.
Save aerth/dbecac1408f809e38cf1af6e10d3e6e7 to your computer and use it in GitHub Desktop.
Disable Laptop Keyboard && Use USB Keyboard Instead ( good for broken laptop keys )
## /etc/X11/xorg.conf.d/10-evdev.conf
## Disable laptop's built-in keyboard (in X session)
## Does not disable on the kernel level
## Does not disable while ctrl+alt+f1 etc
## Useful for placing a USB keyboard on top of laptop's (broken) keyboard as to not accidentally input keys.
## <aerth@riseup.net>
##
## You may have to create the xorg.conf.d directory.
## Something like:
## mkdir-p /etc/X11/xorg.conf.d
## Here is the contents of /etc/X11/xorg.conf.d/10-evdev.conf
Section "InputClass"
Identifier "Built-In Keyboard"
MatchIsKeyboard "on"
MatchProduct "AT Translated Set 2 keyboard"
Option "Ignore" "true"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment