#!/bin/bash
#This Script Depends on xmms-infopipe. sudo apt-get install xmms-infopipe if you don't already have this.
#This shell script is intended for use with conkyrcexpress by ttyfscker, but it may be freely
#used for any other purpose. This file should be placed in ~/ and named xmms.sh
#Be sure that you chmod +x xmms.sh or it may fail to work!
##Begin Code##
IFS="-"; while read line; do if [ ! -z "$(echo ${line} | grep "Title:")" ]; then a=(${line}); title=${a[1]}; artist=${a[0]/*:/}; echo -e "Artist:${artist}"; echo -e "Title:${title}"; exit; fi; done < /tmp/xmms-info