#! /bin/bash


RHYTHMBOX=`ps -e | grep [r]hythmbox | grep -v info`
if [ "$RHYTHMBOX" ]
then
	RCLIENT=`rhythmbox --help | grep print-playing | wc -l `
	if [ "$RCLIENT" -gt 0 ]
	then
		rhythmbox --print-playing --print-playing-artist --print-playing-path --print-song-length --no-focus
	else
		rhythmbox-client --print-playing-format "%tt"
		rhythmbox-client --print-playing-format "%aa"
		echo ""
		rhythmbox-client --print-playing-format "%td"
	fi
else
	echo ""
	echo ""
	echo ""
	echo -1
fi
exit 0 
