View previous topic :: View next topic |
Author |
Message |
troyt n00b
Joined: 07 Nov 2002 Posts: 61 Location: United States
|
Posted: Mon Jan 20, 2003 9:00 pm Post subject: xmodmap on login -- problem (xdm/kdm/gdm) |
|
|
This should be simple; I've done it in the past, but I can't seem to figure out why it's not working now...
All I want to do is have the command
'xmodmap /etc/X11/Xmodmap'
Or similar whenever any user logs in to X.
By checking out the config files, here's what I found:
* from /etc/X11/xdm/Xsession:
...
xinitdir=/usr/X11R6/lib/X11/xinit
sysmodmap=$xinitdir/.Xmodmap
if [ -n "`/etc/X11/chooser.sh`" ]; then
exec "`/etc/X11/chooser.sh`"
# If not defined, try the user's ~/.xsession
elif [ -s "$startup" ]; then
...
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
...
fi
So, I linked the /etc/X11/Xmodmap to /usr/X11R6/lib/X11/xinit/.Xmodmap (which is a bit sloppy, but it does exactly what I wanted it to do).
However, it still doesn't run the xmodmap command...
I think it may have something to do with the chooser.sh script, however, I am unsure exactly what it does... Somehow I think it may find the chooser.sh script, and is skipping past the lines which execute xmodmap...
Hints? What am I missing? I'd like to do this as cleanly as possible; and it's got to be something silly that I'm missing... |
|
Back to top |
|
|
xenon Guru
Joined: 25 Dec 2002 Posts: 432 Location: Europe
|
Posted: Thu Feb 06, 2003 7:18 pm Post subject: |
|
|
No replies? I'd be interested, too... |
|
Back to top |
|
|
AlterEgo Veteran
Joined: 25 Apr 2002 Posts: 1619
|
Posted: Thu Feb 06, 2003 7:57 pm Post subject: |
|
|
It has something to do with the way kdm is wrapped around xdm I think, and it took me ages to find out:
look at /etc/X11/Sessions and add your line: 'xmodmap /etc/X11/Xmodmap'
into each of the sessions defined there. |
|
Back to top |
|
|
xenon Guru
Joined: 25 Dec 2002 Posts: 432 Location: Europe
|
Posted: Thu Feb 06, 2003 8:22 pm Post subject: |
|
|
Thanks a lot - it worked! Something's still wrong in the keyboard department, but at least I can write an email! I had no access to the @ key without manually xmodmapping until now.
Do you also eventually know a decent way to switch users without losing X sessions (Win XP-like, I mean)? That would be great! |
|
Back to top |
|
|
|