Music Player Daemon Community Wiki

525pages on
this wiki
Add New Page
Talk0 Share

Code Edit

# Display an OSD when the track is changed
function setNewOSD ()
  currentTrack=`mpc | head -1`
  lastTrack=`cat $tmp`
  echo "$currentTrack" > $tmp
  [ "$currentTrack" != "$lastTrack" ] &&
while sleep 1

Usage Edit

Create with code from (first variant), make it executable and place in same directory with this one or you could yuse full path to script in line 9:

  [ "$currentTrack" != "$lastTrack" ] && /path/

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki