Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Xmodmap ignored
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
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Tue Dec 29, 2009 12:16 pm    Post subject: [solved] Xmodmap ignored Reply with quote

Hi there,

I'm using kdm4 as login manager and e16 as windowmanager. To use the multimedia keys on my notebook I created ~/.Xmodmap and /etc/X11/Xmodmap.
/etc/X11/xinit/xinitrc:

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/Xresources
sysmodmap=/etc/X11/xinit/Xmodmap


But none of theses files will be parsed. Logged in I can activate the multimedia keys with:
Code:
xmodmap .Xmodmap


I guess, the xdm-Script starts kdm without xinit and parsing xinitrc. So how can I activate one of my needed Xmodmap files at startup without workaround?

Btw. ~/.Xdefaults is parsed at login.


Last edited by musv on Tue Jan 05, 2010 8:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Sat Jan 02, 2010 11:22 pm    Post subject: Reply with quote

evdev for input management should render the use of Xmodmap all but gone

add this to /etc/X11/xinit/xinitrc:
Code:

if [ -f $sysmodmap ]; then
  xmodmap $sysmodmap
fi


likewise:
http://en.gentoo-wiki.com/wiki/Multimedia_Keys#Setting_up_xmodmap
[/quote]
KDM setup Under KDM and KDE, the proper place to load ~/.Xmodmap file is ~/.kde/share/config/kdm/Xsession.
File: $HOME/.kde/share/config/kdm/Xsession

#!/bin/sh
if [ -f $HOME/.Xmodmap ]; then
/usr/bin/xmodmap $HOME/.Xmodmap
fi

Do not forget to run "chmod +x ~/.kde/share/config/kdm/Xsession" [/quote]
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Tue Jan 05, 2010 8:35 pm    Post subject: Reply with quote

Thanx, I put the workaround into /etc/X11/xinit/xinitrc. It's working again for me.
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