diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2016-01-11 19:16:24 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2016-01-11 19:22:19 +0100 |
| commit | 667eb047290f24ddd3f90a3034fba917f40c5f12 (patch) | |
| tree | fa8f118953860ae924ffdb9885ea18cb06755915 /scripts/spotify-artist-title.sh | |
| parent | 90dc7e3a3779ec2517c30b972f2c46efc19d2706 (diff) | |
| download | dotfiles-667eb047290f24ddd3f90a3034fba917f40c5f12.tar.gz dotfiles-667eb047290f24ddd3f90a3034fba917f40c5f12.zip | |
make i3bar music info work with alsa and pa
1) change conkyrc file to execute new media_status script
2) add media_status script which displayes information for the following programs:
+ spotify
+ mpd
If none of the programms is running "no music" will be printed.
3) delete unnecessary script
Diffstat (limited to 'scripts/spotify-artist-title.sh')
| -rw-r--r-- | scripts/spotify-artist-title.sh | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/scripts/spotify-artist-title.sh b/scripts/spotify-artist-title.sh deleted file mode 100644 index 62494b8..0000000 --- a/scripts/spotify-artist-title.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -metadata=$(dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata') - -if [[ $metadata == *"spotify:ad"* ]] -then - echo "ad :/" -else - artist=$(echo "$metadata" | egrep -A 2 "artist" | egrep -v "artist" | egrep -v "array" | cut -b 27- | cut -d '"' -f 1 | egrep -v ^$) - - title=$(echo "$metadata" | egrep -A 1 "title" | egrep -v "title" | cut -b 44- | cut -d '"' -f 1| egrep -v ^$) - - echo $artist - $title -fi |
