Title: [Bash] ++ pgrep -f '.*clementine.*' + [[ -z 3227 6416 ]] + player_toggle_command='cl Author: gando Pastebin link: http://pastebin.com/LD4pv2Xz First Edit: Monday 6th of August 2012 04:47:14 PM CDT Last Edit: Monday 6th of August 2012 04:47:14 PM CDT ++ pgrep -f '.*clementine.*' + [[ -z 3227 6416 ]] + player_toggle_command='clementine -t' ++ qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata + data= ++ echo '' ++ cut '-d ' -f2- ++ grep ':artist: ' + artist= ++ echo '' ++ grep ':album: ' ++ cut '-d ' -f2- + album= ++ echo '' ++ grep ':title: ' ++ cut '-d ' -f2- + title= + checkandnp + dochecks + [[ -z '' ]] + type=album + [[ -z '' ]] + title='' + [[ -z '' ]] + artist='' + [[ -z '' ]] + album='' + [[ -z ]] + [[ '' == \t\r\u\e ]] + saynp + case "$format" in + np='Now Playing: by on ' + [[ '' == \t\r\u\e ]] + echo 'Now Playing: by on ' Now Playing: by on + exit