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?
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?
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:
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.
xev -event keyboard
? – luk3yx Apr 22 '18 at 22:25-event
. – Different55 Apr 22 '18 at 22:26xev -e
seems to also work, perhapsxev
just checks the first letter. – luk3yx Apr 22 '18 at 22:280 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
KeymapNotify event, serial 28, synthetic NO, window 0x0, keys: 65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
– hanswurst31 Apr 22 '18 at 22:310 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[/code]
FN
-based keypresses aren't treated as normal keypresses. – luk3yx Apr 22 '18 at 22:34