Do you have a Keyboard with Media-Keys connected to your Raspberry PI? So do I 🙂
I’ve added following lines to my ‚lxde-pi-rc.xml‘ File in ‚/home/pi/.config/openbox‘ in the keyboard-section:
<keybind key="XF86AudioRaiseVolume"> <action name="Execute"> <command>amixer set PCM 250+ unmute</command> </action> </keybind> <keybind key="XF86AudioLowerVolume"> <action name="Execute"> <command>amixer set PCM 250- unmute</command> </action> </keybind> <keybind key="XF86AudioMute"> <action name="Execute"> <command>amixer set PCM toggle</command> </action> </keybind>
Works like a charm!