/usr/portage

News section "Currently Listening" 0

I’ve kicked my jabber-addon and added the “Currently Listening”-Category to my weblog. Sinc I use MPD/MPC for listening music, it is easy to realize something like this. The following script does it perfectly
#!/bin/bash CURRENT=$(MPD_HOST=adorno MPD_PORT=6600 mpc | head -n1) HTML_CURRENT=$(echo ${CURRENT} | awk -F " - " '{print "Artist: \ <b>"$1"</b><br />Song: <b>"$2"</b>"}') echo "${HTML_CURRENT}" | ssh -q -T schokokeks.org \ "cat > path/to/playlist.html"

Filed under & no comments & three trackbacks

Trackbacks

Trackback specific URI for this entry

No Trackbacks

Comments

No comments

Add a Comment & let me know what you think