[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: KDE autostart & xmodmap howto

Am Donnerstag 27 September 2007 schrieb Robert Gomulka:
> Hello,
> how can I activate my multimedia keys in Debian, which can be done by
> executing xmodmap with proper arguments? What have I done so far:
> 1. executing xmodmap manually works. After that my keys work.
> 2. Put xmodmap invocation into my script in ~/.kde/Autostart. At first
> I thought that it didn't work, because xmms (important: run by session
> manager - automatically saved session) didn't act on those keys.
> However after xmms restart it started working. So I thought that maybe
> my xmodmap script is called too late - after xmms - and that's why it
> wasn't working.

It doesn't matter when you assign those keys: the X key symbol exists before 
and after that, only the mapping changes. This should work with a running 

The following work just fine here. Be aware of the necessary file permissions:
$ cat .Xmodmap
keycode 160 = XF86AudioMute
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
$ ls -l .Xmodmap
-rw-r--r-- 1 hs hs 135 2006-08-11 20:10 .Xmodmap
$ ls -l .kde/Autostart/
.directory   keyboard.sh
$ ls -l .kde/Autostart/keyboard.sh
-rwxr-xr-x 1 hs hs 42 2006-08-11 20:27 .kde/Autostart/keyboard.sh
$ cat .kde/Autostart/keyboard.sh
/usr/bin/xmodmap $HOME/.Xmodmap


Reply to: