summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Makhov <pmakhov@touchtunes.com>2018-11-06 16:35:37 -0500
committerPavel Makhov <pmakhov@touchtunes.com>2018-11-06 16:35:37 -0500
commit73ff9974c93ed4ec594c895e8abe7c63ecf54755 (patch)
treeadf134afe1809edf330f949a6e0306108f692a47
parent8dfc439d75eef94e503249b4c9b123bee1b97bf8 (diff)
parent63d1f63129ee7efd7edd89ab960cab40ad564abf (diff)
Merge remote-tracking branch 'origin/master'
-rw-r--r--mpdarc-widget/mpdarc.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/mpdarc-widget/mpdarc.lua b/mpdarc-widget/mpdarc.lua
index da596f6..ca0f411 100644
--- a/mpdarc-widget/mpdarc.lua
+++ b/mpdarc-widget/mpdarc.lua
@@ -70,8 +70,12 @@ local update_graphic = function(widget, stdout, _, _, _)
mpdarc_current_song_widget.markup = current_song
else
icon.image = STOP_ICON_NAME
- widget.colors = { beautiful.widget_red }
- mpdarc_current_song_widget.markup = ""
+ if string.len(stdout) == 0 then -- MPD is not running
+ mpdarc_current_song_widget.markup = "MPD is not running"
+ else
+ widget.colors = { beautiful.widget_red }
+ mpdarc_current_song_widget.markup = ""
+ end
end
end