summaryrefslogtreecommitdiff
path: root/Conky/spotify-nowplaying-length
diff options
context:
space:
mode:
authorJulian <julianteule@gmail.com>2017-01-23 20:23:04 +0100
committerJulian <julianteule@gmail.com>2017-01-23 20:23:04 +0100
commit3fc5e39e03933f7d8c736d7f66cbd86175188eda (patch)
tree1ce4ccd84c054c062481210e787dbbf1aba072f3 /Conky/spotify-nowplaying-length
parent5d1f5767bc2fe4b2681a7ce7d96131a9b3a16098 (diff)
Updated conky
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