Originally Posted by
Sector11
Now to find out what to put between there.
Thought this would get you started, any more mpd posts need to go elsewhere though, PM me if you want
Here's part of my conkyrc for mpd:
Code:
.
.
.
mpd_host <IP ADDRESS_OF_SERVICE>
mpd_password <PASSWORD>
mpd_port 6600
TEXT
${image $HOME/.scripts/conky/opaque.png -p -1,-1 -s 260x329}
$if_mpd_playing${font Liberation Sans:style=Bold:size=6}${alignr 10}${if_match "$mpd_repeat" == "On"}REPEAT$endif
${alignr 10}${if_match "$mpd_random" == "On"}SHUFFLE$endif
${voffset 200}
${color2}${font}${mpd_bar 10,256}
${voffset 5}${color2}${font}${goto 15}${mpd_elapsed}/${mpd_length} - ${mpd_percent}%${alignr 5}${mpd_status} ${mpd_bitrate}k/s
${voffset 5}${color1}${font Liberation Sans:style=Bold:size=9}${alignc}${mpd_title}
${font}${alignc}${color2} from the album ${color1}${font Liberation Sans:style=Bold:size=9}${mpd_album}
${color2}${font}${alignc} by ${color1}${font Liberation Sans:style=Bold:size=9}${mpd_artist}
${color2}${hr}
${if_existing /tmp/lyrics}${image $HOME/.scripts/conky/opaque.png -p -1,330 -s 260x565}
${color1}${font Liberation Sans:style=Bold:size=9}${exec fold -s -w 40 /tmp/lyrics | sed 's/^/ /'}
${color2}${hr}$endif
${if_existing /tmp/cover}${image /tmp/cover -p 4,4 -s 254x254 -n}$endif
$endif
And here are the 2 scripts I use with mpdcron, for me they need to live in $HOME/.mpdcron/hooks/ to get fired on track changes. Note the red text is what is made available by mpdcron
coverart.sh:
Code:
#!/usr/bin/env sh
##### get coverart linked #####
coverfile="$HOME/.covers/$MPD_SONG_TAG_ARTIST-$MPD_SONG_TAG_ALBUM.jpg"
outputcoverfile="/tmp/cover"
if [ -f "$coverfile" ]; then
rm -f "$outputcoverfile"
echo "coverart.sh - Linking '$outputcoverfile' to cover file '$coverfile'"
ln -s "$coverfile" "$outputcoverfile"
else
echo "coverart.sh - No matching cover art file found here: '$coverfile'"
rm -f "$outputcoverfile"
fi
lyrics.sh:
Code:
#!/usr/bin/env sh
# get lyrics (if found) and copy it to /tmp/lyrics
lyricsfile="$HOME/.lyrics/$MPD_SONG_TAG_ARTIST-$MPD_SONG_TAG_TITLE.txt"
outputlyricsfile="/tmp/lyrics"
if [ -f "$lyricsfile" ]; then
rm -f "$outputlyricsfile"
echo "lyrics.sh - Linking '$outputlyricsfile' to cover file '$lyricsfile'"
ln -s "$lyricsfile" "$outputlyricsfile"
else
rm -f "$outputlyricsfile"
fi
Bookmarks