vote up 5 vote down star
4

Forget all the rants about <CapsLock>, <NumLock> is the most useless keys of them all. It's never, ever useful. You don't want to use your numpad as an arrowpad, since the arrows are 1cm away from it. Never.

There was a time when some keyboards had a numpad but no dedicated arrow keys. They don't exist anymore. You can find keyboards with no numpad but with arrow keys, but not the opposite.

Therefore, <NumLock> is useless, and it only serves to aggravate me and, I presume, others. Please note that I do not want to know how to turn <NumLock> on at startup, I do not want to know how to tear the key off, I want to disable it so that it stays on all the time and can't be turned off by mistake. Any idea how to do that?

Ideally I'd like to be able to reclaim the key for another use, such as a modifier that allows me to type hex on the numpad.

Additionally I'd love to know how to turn off the equally useless mouse emulation triggered by <shift>+<NumLock>.

flag
And how do you get the nice key cap style in MarkDown? Couldn't find it! – niXar Nov 17 at 13:23
It's <kbd></kbd> – John T Nov 17 at 13:24
The <kbd> tag is not a feature of MarkDown! It has been around since HTML 3.2. – eleven81 Nov 17 at 13:34
1  
+1 I admire your passion, it reflects my feelings on CapsLock vs Ctrl. – kmarsh Nov 17 at 13:57
1  
@rich: I said I didn't want to hear about that, and it doesn't solve the problem, since if for some reason numlock turns off, you can't turn it back on. – niXar Nov 17 at 17:15
show 3 more comments

3 Answers

vote up 4 vote down check

Well for your first question, you can remap it to nothing with xmodmap:

xmodmap -e "keycode # = """

where # is the scan code of NumLock. You can find the scan code using xev. Instead of nothing you can remap it to any key you'd like.

link|flag
Well thank you very much, that answered my question. I did xmodmap -e 'keycode 77 = ISO_Level3_Shift Num_Lock', so that I can turn the thing on if it goes off, and use the key itself as a modifier. – niXar Nov 17 at 13:48
Nice idea, well done :) – John T Nov 17 at 13:49
vote up 2 vote down

Are you sure it is not needed? For example, I use arrows on a numpad when playing FreeCiv, because it also have diagonal arrows, and usual arrows have not.

link|flag
vote up 1 vote down

For further reading, check out the loadkeys command, it can alter the keyboard for console logins, too.

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.