summaryrefslogtreecommitdiff
path: root/Conky/spotify-nowplaying-length
diff options
context:
space:
mode:
Diffstat (limited to 'Conky/spotify-nowplaying-length')
-rwxr-xr-xConky/spotify-nowplaying-length3
1 files changed, 3 insertions, 0 deletions
diff --git a/Conky/spotify-nowplaying-length b/Conky/spotify-nowplaying-length
new file mode 100755
index 0000000..45a0158
--- /dev/null
+++ b/Conky/spotify-nowplaying-length
@@ -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 "length"|egrep -v "length"|egrep -v "array"|cut -b 43-|cut -d '"' -f 1|egrep -v ^$` \ No newline at end of file