On 4/25/07, Hans van der Merwe <[EMAIL PROTECTED]> wrote:

Ok, how I did it (when KDE control panel did not work):

1.   In command line run, xev.  Press the multimedia buttons and check
that it responds - if it does your in luck and the buttons are useful -
some keyboards need special drivers to get to some functions.
Record the keycodes.

2.  Create and edit a file in your home folder named < .Xmodmap >
Add the keycodes and functions to perform. ie mine looks like this
(boring keyboard)

keycode 160 = XF86AudioMute
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume

XF86AudioMute, XF86AudioLowerVolume, etc actions are predefined.
Check in </usr/share/X11/XKeysymDB> for available actions.

3.  run xmodmap and check if the keys work as expected.
on restart .Xmodmap is automatically loaded.

Something is wrong here, because it's not working. I followed you
instructions, and xmodmap reads the file, as you can see:

xmodmap -pk | grep Audio
   129         0x1008ff14 (XF86AudioPlay)      0x1008ff31 (XF86AudioPause)
   130         0x1008ff15 (XF86AudioStop)
   131         0x1008ff16 (XF86AudioPrev)
   132         0x1008ff17 (XF86AudioNext)
   144         0x1008ff16 (XF86AudioPrev)
   153         0x1008ff17 (XF86AudioNext)
   160         0x1008ff12 (XF86AudioMute)
   162         0x1008ff14 (XF86AudioPlay)      0x1008ff31 (XF86AudioPause)
   164         0x1008ff15 (XF86AudioStop)
   174         0x1008ff11 (XF86AudioLowerVolume)
   176         0x1008ff13 (XF86AudioRaiseVolume)

(keys 129-132 were not my doing and are not in my .Xmodmap file, they
must come configured with the system).

But the only program which reacts to the keys is still Amarok, and
that's because it's got it's own configuration.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to