0

How to disable keys from the keyboard?

i want to disable a key and my question is beeing aswered in the linked thread. however i have an additinal question:

is there a way to findout the keycode of a specific key in ubuntu 17.10?

1 Answers1

2

Yeah, xev should do the trick. If I'm remembering right you can find it in the x11-utils package. Run xev and press the keys you want, it'll spit out a bunch of info for each event:

Example of xev output

For just keyboard events, you should launch it in a terminal with xev -event keyboard to tell it to ignore non-keyboard events like mouse moves.