From: luke bonham Date: Fri, 1 Nov 2013 18:27:49 +0000 (+0100) Subject: issue #9 semi-fix X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/0eb2084a3ac0e352d2a401869b4f8a73229af0ba?ds=inline;hp=165c5a17f468d6a2c7f5d2b61b6b2ce1f11d3970 issue #9 semi-fix --- diff --git a/widgets/mpd.lua b/widgets/mpd.lua index 58d9430..4ee922f 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -42,6 +42,15 @@ local function worker(args) mpd.widget = wibox.widget.textbox('') + mpd_now = { + state = "N/A", + file = "N/A", + artist = "N/A", + title = "N/A", + album = "N/A", + date = "N/A" + } + mpd_notification_preset = { title = "Now playing", timeout = 6 @@ -50,15 +59,6 @@ local function worker(args) helpers.set_map("current mpd track", nil) function mpd.update() - mpd_now = { - state = "N/A", - file = "N/A", - artist = "N/A", - title = "N/A", - album = "N/A", - date = "N/A" - } - local f = io.popen(echo .. " | curl --connect-timeout 1 -fsm 3 " .. mpdh) for line in f:lines() do