From d5a6b65c28795f363f9df6b12a0a1f226d846493 Mon Sep 17 00:00:00 2001 From: "Archie Hilton (thytom)" Date: Wed, 6 Nov 2019 16:16:49 +0000 Subject: Fixed mpd module to disappear when not active --- modules/mpd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/mpd b/modules/mpd index 67c319f..ecbdd4e 100755 --- a/modules/mpd +++ b/modules/mpd @@ -1,13 +1,14 @@ #!/bin/bash -PREFIX_PLAY=' ' -PREFIX_PAUSE=' ' +PREFIX_PLAY=' ' +PREFIX_PAUSE=' ' get_mpd() { current_song="$(mpc current)" if [[ "$current_song" = "" ]]; then + echo " " exit 0 else playpause=$(mpc | awk '/\[.*]/{split($0, a, " "); print a[1]}') -- cgit v1.2.3