dell inspiron 8200 media keys and freebsd

November 29, 2006

To configure the media keys on my Dell Inspiron 8200 to work with Amarok takes three steps:

  1. 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

  2. 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

  3. Now run xmodmap ~/.Xmodmap && xbindkeys. Put theese commands in your ~/.xinitrc as well.

Leave a Reply