X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/47a00516d88c42378b487ba302835097c3138099..f59c9644ab3daa1f186c5d4041184327184b9150:/widgets/maildir.lua diff --git a/widgets/maildir.lua b/widgets/maildir.lua index c9937b4..e963fc6 100644 --- a/widgets/maildir.lua +++ b/widgets/maildir.lua @@ -39,8 +39,7 @@ local function worker(args) maildir.widget = wibox.widget.textbox('') function update() - if ext_mail_cmd ~= nil - then + if ext_mail_cmd then awful.util.spawn(ext_mail_cmd) end @@ -75,6 +74,7 @@ local function worker(args) p:close() newmail = "no mail" + -- Count the total number of mails irrespective of where it was found total = 0