diff options
Diffstat (limited to 'Conky/spotify-nowplaying.sh')
-rwxr-xr-x | Conky/spotify-nowplaying.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 |