Saturday, August 11, 2018

Disable Print Screen key on Debian 9

I bought a Lenovo ThinkPad E470 with a brazilian portuguese keyboard a few months ago. Since I started to use it, I was annoyed by the fact that Print Screen key is side by side with (forward) slash key. It is funny to remove all of the print screens I took by mistake by the end of the day. Since I rarely use print screen, I decided to disable the key on X.



Edit /usr/share/X11/xkb/keycodes/evdev:

Search for <PRSC> and comment the line with two slashes such as:

// <PRSC> = 107;

Save the file and restart the X.