View previous topic :: View next topic |
Author |
Message |
musv Advocate
Joined: 01 Dec 2002 Posts: 3337 Location: de
|
Posted: Tue Dec 29, 2009 12:16 pm Post subject: [solved] Xmodmap ignored |
|
|
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:
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 |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Sat Jan 02, 2010 11:22 pm Post subject: |
|
|
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 |
|
|
musv Advocate
Joined: 01 Dec 2002 Posts: 3337 Location: de
|
Posted: Tue Jan 05, 2010 8:35 pm Post subject: |
|
|
Thanx, I put the workaround into /etc/X11/xinit/xinitrc. It's working again for me. |
|
Back to top |
|
|
|