#!/bin/bash

player="banshee-1"
status="No player active."

if pidof $player > /dev/null; then
    status=$(banshee --query-current-state| cut -d ' ' -f 2- | sed 's/\([a-z]\)\([a-zA-Z0-9]*\)/\u\1\2/g')
    song=$(banshee --query-artist --query-title | cut -d ' ' -f 2- | paste -d '-' - - )
fi

echo "$status $song"
