From 3fc5e39e03933f7d8c736d7f66cbd86175188eda Mon Sep 17 00:00:00 2001 From: Julian Date: Mon, 23 Jan 2017 20:23:04 +0100 Subject: Updated conky --- Conky/spotify-nowplaying.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 Conky/spotify-nowplaying.sh (limited to 'Conky/spotify-nowplaying.sh') diff --git a/Conky/spotify-nowplaying.sh b/Conky/spotify-nowplaying.sh new file mode 100755 index 0000000..47a960d --- /dev/null +++ b/Conky/spotify-nowplaying.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo `dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "artist"|egrep -v "artist"|egrep -v "array"|cut -b 27-|cut -d '"' -f 1|egrep -v ^$` "-" `dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "title"|egrep -v "title"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$` \ No newline at end of file -- cgit v1.2.3