Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xmodmap on login -- problem (xdm/kdm/gdm)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
troyt
n00b
n00b


Joined: 07 Nov 2002
Posts: 61
Location: United States

PostPosted: Mon Jan 20, 2003 9:00 pm    Post subject: xmodmap on login -- problem (xdm/kdm/gdm) Reply with quote

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
View user's profile Send private message
xenon
Guru
Guru


Joined: 25 Dec 2002
Posts: 432
Location: Europe

PostPosted: Thu Feb 06, 2003 7:18 pm    Post subject: Reply with quote

No replies? :( I'd be interested, too...
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Thu Feb 06, 2003 7:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
xenon
Guru
Guru


Joined: 25 Dec 2002
Posts: 432
Location: Europe

PostPosted: Thu Feb 06, 2003 8:22 pm    Post subject: Reply with quote

Thanks a lot - it worked! :D 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum