diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2021-04-28 17:49:19 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2021-04-28 17:49:19 +0200 |
| commit | 7e3371321e0fd7d09dd7233c48b62f1878e6b84a (patch) | |
| tree | f5b73dc75b6798f42c08457eda498fcc1e191bc0 /scripts/media_status.sh | |
| parent | af77c2c193e5a4bc3b6b775a00b94d1a57f28126 (diff) | |
| download | dotfiles-7e3371321e0fd7d09dd7233c48b62f1878e6b84a.tar.gz dotfiles-7e3371321e0fd7d09dd7233c48b62f1878e6b84a.zip | |
[media_status] only output mpd status if there is a song in the queue
Diffstat (limited to 'scripts/media_status.sh')
| -rwxr-xr-x | scripts/media_status.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/media_status.sh b/scripts/media_status.sh index ab169c0..8a65b4e 100755 --- a/scripts/media_status.sh +++ b/scripts/media_status.sh @@ -32,7 +32,11 @@ elif pgrep mpd &>/dev/null then if type mpc &>/dev/null then - echo MPD: "▐▐" $(mpc current) + current_song=$(mpc current) + if test -n "$current_song" + then + echo "MPD: ▐▐ $current_song" + fi else echo "for mpd status mpc is needed" fi |
