Add script to check if spotify is playing music

This commit is contained in:
Pavel Makhov 2017-06-17 12:49:15 -04:00
parent c93d1e6f48
commit 4444a75813
1 changed files with 2 additions and 0 deletions

2
spotify-widget/spotify_stat Executable file
View File

@ -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]*'