I would like audio feedback when toggling MPD options using an IR remote. When toggling a feature on/off, you would hear the current feature state .
When turning on shuffle:
- Pause playback
- Play a local audio file that says “Shuffle On”
- Resume playback
This can be done with lircrc, but MPD hogs the audio output so the local sound file won’t play.
.lircrc - Shuffle
prog = irexec
button = SHUFFLE
config = mpc pause; mpc repeat; aplay shuffle_on.wav; mpc play #<— aplay won’t work (device busy)
Of course the aplay command would be replaced by a script that reads the current MPD repeat setting and would play Shuffle_On.wav or Shuffle_Off.wav as needed.