You are not logged in.

#1 2007-05-29 17:49:37

mosor
Member
Registered: 2007-04-02
Posts: 22

Why is KDE messing with my xmodmap?

Hi all,
I have the following snippet in my .xinitrc file:

xmodmap -e "remove Lock = Caps_Lock"
xmodmap -e "keysym Escape = Caps_Lock"
xmodmap -e "keysym Caps_Lock = Escape"
xmodmap -e "add Lock = Caps_Lock"

This disables CapsLock key, and makes it behave like Escape.
Everything works just fine for some totally random amount of time (sometimes half an hour, sometimes a day or two), when suddenly CapsLock starts to behave like both like CapsLock (toggles the LED, and the case of the letters) and like Escape. And it's annoying like hell, I have to close all apps, and restart KDE.

Any ideas on how to solve this one are greatly appreciated, because it's driving me crazy. Btw, I'm using KDEmod 3.5.6.

Thanks,
~mosor.

Offline

#2 2007-05-31 11:14:55

mosor
Member
Registered: 2007-04-02
Posts: 22

Re: Why is KDE messing with my xmodmap?

Here is the "solution", in case someone else comes across the same problem. Everytime Kxkb changes keyboard layout it uses setxkbmap, and that disables changes made by xmodmap. The only fix I could find was to run `xmodmap; xmodma_script.sh` after each keyboard layout change. Not a great solution, but the only one I could find.

Last edited by mosor (2007-05-31 11:15:16)

Offline

Board footer

Powered by FluxBB