I am using a keyboard with the Fn key. This is on a laptop.
So my Fn + Up/Down/Left/Right keys are mapped to brightness/volume. I would much rather them be mounted to Page Up/Page Down and Home/End. And map the other 4 keys to these 2. The page Page Up/Page Down has Fn + them for Home/End. Its a shitty keyboard layout but I want to make it work.
Anyone knows how to figure out what the keycodes are and how to remap them?
Version: 10.04 x32
So here are some experiments:
Using xmodmap -pke I discovered that keycodes 122 = vol down, 123 = vol up. And I got all the info for Home/End/Page Up (next), Page Down (prior).
Now when using the vol up keys, there are no events being fired that xev
can detect.
I can remap the volume keys to XF86AudioLowerVolume
or XF86AudioRaiseVolume
, but once I map those two to Home/End (respectively) they don't do anything. xev
still does not pick up these events after a remap.
Remap: xmodmap -e "keycode 122 = Home"