how to remap keys with xmodmap
i bought a microsoft wireless key and it has the
"end" key on top of the "page up" key. I am not
use to this and would like to map the following:
"end"-> "page up"
"page up"->"page down"
"page down" -> "end"
i tried xkeycap but it does not have this layout.
Re: how to remap keys with xmodmap
On 22 Sep 2004 06:44:55 -0700, les ander staggered into the Black Sun
> i bought a microsoft wireless key[/color]
Just one key? (Must be Ctrl-Alt-Delete!)
> and it has the "end" key on top of the "page up" key. I am not use to
> this and would like to map the following:
> "end"-> "page up"
> "page up"->"page down"
> "page down" -> "end"
> i tried xkeycap but it does not have this layout.[/color]
Use xev to find out the keycodes this keyboard generates for End, PgUp,
and PgDown. These are 103, 99, and 105 on my laptop keyboard. So I'd
xmodmap -e 'keycode 103 = Prior'
xmodmap -e 'keycode 99 = Next'
xmodmap -e 'keycode 105 = End'
Note that X calls "PageUp" "Prior" and "PageDown" "Next". Modify the
keycodes for your keyboard when you've used xev to figure things out.
This *will* confuse people who look at the keys when typing, so make
sure to switch things back to normal if someone other than you uses this
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
[url]http://www.brainbench.com[/url] / Hire me!