aboutsummaryrefslogtreecommitdiff
path: root/modules/mpd
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mpd')
-rwxr-xr-xmodules/mpd5
1 files changed, 3 insertions, 2 deletions
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]}')