[xmodmap] Problem with e and n

Dirk Wallenstein halsmit at t-online.de
Mon Nov 23 02:04:24 PST 2009


On Sunday 22 November 2009 23:35:29 walt wrote:
> I've mapped my CapsLock key to a plain Shift_L key, using your instructions.
> Here is the output of xev (note the keycode is 66):
> 
> KeyPress event, serial 30, synthetic NO, window 0x2000001,
>      root 0x189, subw 0x0, time 35504647, (136,79), root:(140,822),
>      state 0x0, keycode 66 (keysym 0xffe1, Shift_L), same_screen YES,
>      XKeysymToKeycode returns keycode: 50
>      XLookupString gives 0 bytes:
>      XmbLookupString gives 0 bytes:
>      XFilterEvent returns: False
> 
> That part is wonderful, but pressing the Caps Lock key doesn't create upper
> case letters, but pressing the Shift key does.
> 
> Here is the line that I changed in the .xkb file:
>      key <CAPS> {         [         Shift_L ] };
> 
> What have I missed?


For modifiers, you have to change the modifier_map entry.

Currently, it will look like this:
    modifier_map Lock { <CAPS> };

Change it to:
    modifier_map Shift { <CAPS> };

If you want to reuse the shift key for other things, you might want to
change or remove the modifier_map entry for your shift key - which 
probably looks like:
    modifier_map Shift { <LFSH> };


Greetings, Dirk.




More information about the xorg mailing list