From 4444a7581364833474fbad05dbb80406abdecd54 Mon Sep 17 00:00:00 2001 From: Pavel Makhov Date: Sat, 17 Jun 2017 12:49:15 -0400 Subject: Add script to check if spotify is playing music --- spotify-widget/spotify_stat | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 spotify-widget/spotify_stat (limited to 'spotify-widget') 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]*' -- cgit v1.2.3