[xmonad] xmonad and remapping keys with xmodmap
Ico Doornekamp
xmonad at zevv.nl
Fri Jan 18 15:56:55 CET 2013
* On Fri Jan 18 15:45:26 +0100 2013, wagnerdm wrote:
> Quoting Ico <xmonad at zevv.nl>:
>
> > - I remap the numpad arrows to send 'Left' instead of KP_Left':
> >
> > xmodmap -e "keycode 83 = Left Left"
> > ...
> >
> > - Xmonad now works with the keypad left arrow key, but the normal arrow
> > key (that was not remapped) is no longer picked up by xmonad. It works
> > for all other apps I tested, though. xev shows the normal key symbols
> > when pressing the keys.
>
> Yeah, that's a bit annoying. The culprit is that xmonad asks X to
> convert keysyms into keycodes, then binds keycodes instead of keysyms.
Yes, that makes perfect sense.
> This is subtly a bug because many keycodes may map to the same keysym,
> in which case X will choose one arbitrarily to return from the
> conversion.
That's a bit of a funny way of doing things, but explains just fine what
I'm seeing here.
> You might be interested in
>
> http://code.google.com/p/xmonad/issues/detail?id=273
Thank you, I'll check that out.
Ico
--
:wq
^X^Cy^K^X^C^C^C^C
More information about the xmonad
mailing list