Getting the Mute and Volume Buttons Working in Openbox

2009 November 22
by shagadelic

Here’s the easiest way I’ve found to get the mute and volume buttons to work in Openbox.  I found this in a thread on the Arch forums.

Simply add this code to the ~/.config/Openbox/rc.xml file.  If you look through the file, you’ll see a section with other keybindings and you can just add this to the end of that section.

Make sure you have alsamixer installed.  In Arch, that’s part of the alsa-utils package.

<!– Keybindings for volume control –>
<keybind key=”XF86AudioRaiseVolume”>
<action name=”Execute”>
<execute>amixer sset Master 1+</execute>
</action>
</keybind>
<keybind key=”XF86AudioLowerVolume”>
<action name=”Execute”>
<execute>amixer sset Master 1-</execute>
</action>
</keybind>
<keybind key=”XF86AudioMute”>
<action name=”Execute”>
<execute>amixer sset Master toggle</execute>
</action>
</keybind>

No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS