You are not logged in.

#1 2008-12-18 16:48:06

jcolinzheng
Member
From: Cambridge, MA
Registered: 2008-08-06
Posts: 50
Website

xmodmap -e "clear Lock" works *except* in xinitrc [SOLVED]

It's a strange problem...
* All other xmodmap expressions in my xinitrc work.  e.g. xmodmap -e "keysym Caps_Lock = F11"
* The expression -e "clear Lock" works after I have started into the window manager, and type it from the terminal emulator
* I tried, to no avail, also (sleep 3; xmodmap -e "clear Lock") &

Help help!

Last edited by jcolinzheng (2008-12-18 16:49:01)

Offline

#2 2008-12-20 19:30:16

jcolinzheng
Member
From: Cambridge, MA
Registered: 2008-08-06
Posts: 50
Website

Re: xmodmap -e "clear Lock" works *except* in xinitrc [SOLVED]

I've figured it out.  Interestingly, (sleep 10; xmodmap -e "clear Lock") & works  -_-!

Offline

#3 2008-12-30 03:53:32

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: xmodmap -e "clear Lock" works *except* in xinitrc [SOLVED]

I don't know how I missed this thread before. This is freakin' brilliant. I had this in my openbox autostart file to remap Caps_Lock to Ctrl. It was working, then just stopped with some upgrade the other day:

xmodmap -e "remove lock = Caps_Lock" &
xmodmap -e "add control = Caps_Lock" &
eval `cat $HOME/.fehbg` &
numlockx &
lxpanel &

Instead of using sleep, I simply rearranged the order. It works now:

xmodmap -e "remove lock = Caps_Lock" &
eval `cat $HOME/.fehbg` &
numlockx &
lxpanel &
xmodmap -e "add control = Caps_Lock" &

I added [SOLVED] to the title.

Offline

Board footer

Powered by FluxBB