Tuesday, October 3, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  26] [ 0]  / answers: 1 / hits: 34233  / 2 Years ago, mon, june 21, 2021, 2:33:47

I have a laptop with a full keyboard (it has numpad), but the laptop is not that big, and because of that the keys are relatively small, which means I am constantly finding myself pressing keys accidentally on the numpad part.

Is there a way to disable specific keys that I simply don't want?

More From » keyboard


I have the Menu key very close to the Ctrl and left-arrow keys.

xmodmap -e 'keycode 135 = 0x0000' 

To get a first impression what keycodes are mapped to which keys, just type:

xmodmap -pke

which gives you a list of all mappings. For example, the line

keycode  57 = n N

means that the keycode 57 is mapped to a lowercase "n" if no extra key is pressed, and an uppercase "N" if Shift is held.

Some references to get around with things.

  1. xev will let you identify the keycode for your key of interest.

    Look at its man page, This is a good quick reference too,

    Mediakeys with .Xmodmap HOWTO

  2. ArchWiki has a good description for xmodmap

[#44118] Monday, June 21, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 35
Total Questions: 128
Total Answers: 138

Location: Indonesia
Member since Thu, Oct 1, 2020
3 Years ago
ibuteking questions
Sat, Sep 10, 22, 08:44, 1 Year ago
Fri, May 12, 23, 10:10, 5 Months ago
Tue, May 23, 23, 13:38, 5 Months ago