X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ddbf283f0ebbc6772d485fe76c5dccf338d3b837..83b96b3c3ada021e47d6ef1ad48c03710f0dc24a:/widgets/maildir.lua diff --git a/widgets/maildir.lua b/widgets/maildir.lua index 7e7b246..f7dfd28 100644 --- a/widgets/maildir.lua +++ b/widgets/maildir.lua @@ -18,7 +18,7 @@ local setmetatable = setmetatable -- Maildir check (synchronous) -- lain.widgets.maildir -local maildir = helpers.make_widget_textbox() +local maildir = {} local function worker(args) local args = args or {} @@ -28,6 +28,8 @@ local function worker(args) local settings = args.settings or function() end local cmd = args.cmd + maildir.widget = wibox.widget.textbox() + function maildir.update() if cmd then helpers.async({ awful.util.shell, "-c", cmd }, function() end) end