summaryrefslogtreecommitdiff
path: root/spotify-widget/spotify_stat
diff options
context:
space:
mode:
Diffstat (limited to 'spotify-widget/spotify_stat')
-rwxr-xr-xspotify-widget/spotify_stat2
1 files changed, 2 insertions, 0 deletions
diff --git a/spotify-widget/spotify_stat b/spotify-widget/spotify_stat
new file mode 100755
index 0000000..175ca2d
--- /dev/null
+++ b/spotify-widget/spotify_stat
@@ -0,0 +1,2 @@
+#!/bin/sh
+pacmd list-sink-inputs | grep -e 'state:' -e 'application.name' | grep -B 1 spotify | grep -P -o '(?<=: )[A-Za-z]*'