You are not logged in.

#1 2012-04-11 18:15:49

Gits
Member
Registered: 2012-04-03
Posts: 5

[Solved] xmodmap bug? Remapping Caps Lock doesn't work

When I program I like to swap these keys:

Esc <-> Tab
Ctrl <-> Caps Lock

In ~/.xmodmap, I have specified these re-mappings:

keycode 66 = Control_L
keycode 37 = Caps_Lock
keycode 23 = Escape
keycode 9 = Tab

The Escape and Tab keys swaps, no problem, but instead of Caps_Lock and Control_L swapping, both those keys becomes Caps_Lock.

Whatever I try to do, the Control keys doesn't get assigned to Caps_Lock(keycode 66). If I leave the keycode 66 = , the key is un-assigned, but when I assign Control_L or Control_R, it just doesn't work. But, if I assign some other key, for example, keycode 66 = Tab, it gets assigned, no problem.

Its like xmodmap just doesn't want Caps Lock and Control keys to be swapped. Really frustrating. Any help/pointers would be really helpful.

Last edited by Gits (2012-04-12 07:09:37)

Offline

#2 2012-04-12 07:08:15

Gits
Member
Registered: 2012-04-03
Posts: 5

Re: [Solved] xmodmap bug? Remapping Caps Lock doesn't work

Offline

Board footer

Powered by FluxBB