X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ddbf283f0ebbc6772d485fe76c5dccf338d3b837..91569eb5b4ffb200f3f68baaabcd42af32d13674:/widgets/mpd.lua?ds=sidebyside diff --git a/widgets/mpd.lua b/widgets/mpd.lua index d92c78f..c4c4691 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -21,7 +21,7 @@ local setmetatable = setmetatable -- MPD infos -- lain.widgets.mpd -local mpd = helpers.make_widget_textbox() +local mpd = {} local function worker(args) local args = args or {} @@ -41,6 +41,8 @@ local function worker(args) local echo = string.format("printf \"%sstatus\\ncurrentsong\\nclose\\n\"", password) local cmd = string.format("%s | curl --connect-timeout 1 -fsm 3 %s", echo, mpdh) + mpd.widget = wibox.widget.textbox() + mpd_notification_preset = { title = "Now playing", timeout = 6 } helpers.set_map("current mpd track", nil)