Topic: HowTo: Configure your multimedia keys for Exaile
Not being able to use my keyboard's multimedia keys in Crunchbang has been a real bugbear of mine, so I decided, with some help from becatlibra's post in the CrunchEee support thread, to sort it out myself. This config will only work with Exaile, although I expect that if you change the commands in the rc.xml slightly it should work with other media players as well.
1/ Create a ".Xmodmap" text file in /home/username
This should contain:
keycode 121 = XF86AudioMute
keycode 122 = XF86AudioLowerVolume
keycode 123 = XF86AudioRaiseVolume
keycode 171 = XF86AudioNext
Keycode 172 = XF86AudioPlay
Keycode 173 = XF86AudioPrev
Keycode 174 = XF86AudioStop
Save the file.
2/ sudo gedit ~/.config/openbox/rc.xml
Add the following into the "keyboard" section of the text file (between the lines " </keyboard>" and " </keybind>")
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>amixer sset PCM,0 5%-</command>
</action>
</keybind>
<keybind key="XF86AudioMute">
<action name="Execute">
<command>amixer sset iSpeaker,0 toggle</command>
</action>
</keybind>
<keybind key="XF86AudioNext">
<action name="Execute">
<command>exaile -n</command>
</action>
</keybind>
<keybind key="XF86AudioPlay">
<action name="Execute">
<command>exaile -t</command>
</action>
</keybind>
<keybind key="XF86AudioPrev">
<action name="Execute">
<command>exaile -p</command>
</action>
</keybind>
<keybind key="XF86AudioStop">
<action name="Execute">
<command>exaile -s</command>
</action>
</keybind>Save the file.
3/ Right click on your desktop, navigate through Preferences and Openbox Config to your autostart.sh file. Add this line to it:
xmodmap /home/username/.XmodmapSave the file and restart Openbox.
Hope it works as well for you as it has for me ![]()