using numlock to generate numbers in X apps
i have an ~/Xmodmap with this content:
keycode 79 = Home
keycode 87 = End
keycode 81 = Prior
keycode 89 = Next
keycode 83 = Left
keycode 88 = Down
keycode 85 = Right
keycode 80 = Up
I specified these keycodes to be able to navigate with the right
keypad in apps like Evolution. I found the above keys by using Xev to see
the codes. I then used the codes from the small keypad and specified them
for the keys of the large keypad. It seems to work ok.
Now i would like these settings to be overridden when i push the numlock
key so i can then generate numbers instead of navigating.
How do i specify this for X and console? I do not know that much
on keyboard settings. I found stuff on loadkeys, dumpkeys, keymap,
getkeycodes, setkeycodes and to be honest, it sounds a bit complicated.
Anyway, any sollution or links to tutorials (simple) are welcome.