You are not logged in.

#1 2012-11-30 00:54:34

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

[Solved] xmodmap not autoloading

I'm having the strangest issue with my ~.Xmodmap.  Here is my file

remove control = Control_R
keycode 105 = Alt_R
keycode 135 = Control_R
add control = Control_R

My ~.xinitrc looks like

exec icewm
sleep 5s
xmodmap .Xmodmap

This doesn't switch the right MENU and CTRL keys.  When I run

xmodmap .Xmodmap

manually in a terminal though.  It works just as I want it to.

How do I get the ~.Xmodmap file to autoload?

Last edited by ravster (2012-11-30 01:03:21)

Offline

#2 2012-11-30 00:58:05

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [Solved] xmodmap not autoloading

Put the xmodmap call before the "exec icewm" in your .xinitrc (exec icewm should be the last thing in .xinitrc).

(edit):

http://linux.die.net/man/3/exec

"exec" replaces the currently running process, so the way you have it, once you call "exec icewm" the rest of your .xinitrc is not run.

Last edited by 2ManyDogs (2012-11-30 01:04:37)

Offline

#3 2012-11-30 01:02:58

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: [Solved] xmodmap not autoloading

hehe, that worked perfectly.  Thanks 2ManyDogs.

Offline

#4 2012-11-30 01:04:19

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [Solved] xmodmap not autoloading

You're welcome. See my edit for an explanation of why this works.

Offline

Board footer

Powered by FluxBB