To configure the media keys on my Dell Inspiron 8200 to work with Amarok takes three steps:
- Per default the media keys are not linked to any X keysyms. Put this in
~/.Xmodmap:
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
keycode 129 = XF86AudioPlay
keycode 130 = XF86AudioStop
keycode 131 = XF86AudioPrev
keycode 132 = XF86AudioNext - Map the keys to the relevant commands – I’m using amarok. Put this in
~/.xbindkeysrc:
“mixer vol +5″
XF86AudioRaiseVolume
“mixer vol -5″
XF86AudioLowerVolume
“amarok –play-pause”
XF86AudioPlay
“amarok –stop”
XF86AudioStop
“amarok –previous”
XF86AudioPrev
“amarok –next”
XF86AudioNext - Now run
xmodmap ~/.Xmodmap && xbindkeys. Put theese commands in your~/.xinitrcas well.