So I figured out a quick and dirty solution that works for me.
Caveats:
1. Mute (knob press) actually pauses and un-pauses the player, which is arguably more useful. Also mpc doesnt include a simple way to toggle mute and un-mute, so it would need some script fu to save the volume setting and state around mute/unmute presses.
2. Volume changes aren't reflected on the web GUI. Would love to know if there is a shell command that can change volume and mute/un-mute mpd while correctly updating the GUI?
Code:
sudo apt-get install triggerhappy
$vi /etc/triggerhappy/triggers.d/media.conf
KEY_VOLUMEUP 1 /usr/bin/mpc volume +1
KEY_VOLUMEDOWN 1 /usr/bin/mpc volume -1
KEY_MUTE 1 /usr/bin/mpc toggle
/etc/init.d/triggerhappy restart
1. Mute (knob press) actually pauses and un-pauses the player, which is arguably more useful. Also mpc doesnt include a simple way to toggle mute and un-mute, so it would need some script fu to save the volume setting and state around mute/unmute presses.
2. Volume changes aren't reflected on the web GUI. Would love to know if there is a shell command that can change volume and mute/un-mute mpd while correctly updating the GUI?