You are not logged in.

#1 2008-02-18 14:06:54

jordi
Member
Registered: 2006-12-16
Posts: 103
Website

.xmodmap in autostart.sh (openbox) -> keys don't behave correct

Hello everyone,

I am trying to switch ESC and Caps_Lock to improve my vi-effectiveness. Thus i put the following lines into my ~/.Xmodmap

! swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock

And tried it by executing `xmodmap ~/.Xmodmap`

As result Esc and Caps_lock got swapped as expected, thus i put `xmodmap ~/.Xmodmap` into .config/openbox/autostart.sh and to try if it is loaded correctly i restarted X.

What happens is the following:

Esc and Capslock are swapped (as expected) and here comes the odd part: when hitting the keys for ']' there is also an Esc invoked.

I tried to figure out what exactly the problem is, but I wasn't able to discover anything else. Putting xmodmap ~/.Xmodmap into the .xinitrc instead of the autostart.sh didn't solve the problem either. So I was trying to figure out if openbox does set something related to xmodmap, but i couldn't find any resources.

Also i got the following lines in my .Xmodmap and they worked without any asinine side effect in the .xinitrc file:

keycode 77 = Num_Lock
keycode 234 = F19
keycode 233 = F20

In addition I tried to use just

remove Lock = Caps_Lock
keysym Caps_Lock = Escape

Resulting in the same problems.

Would be nice to get some nice advice, since I am really completely out of
ideas.

Offline

Board footer

Powered by FluxBB