X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/1539a1b5d4394c6a397e3a68f36f9ba66d161a4b..75df71f9a10b26522ff1b9e698f9f0b4ee56abef:/widgets/maildir.lua?ds=inline diff --git a/widgets/maildir.lua b/widgets/maildir.lua index 4f3fc79..c9937b4 100644 --- a/widgets/maildir.lua +++ b/widgets/maildir.lua @@ -13,6 +13,7 @@ local spairs = require("lain.helpers").spairs local wibox = require("wibox") +local awful = require("awful") local util = require("lain.util") local io = { popen = io.popen } @@ -42,10 +43,11 @@ local function worker(args) then awful.util.spawn(ext_mail_cmd) end + -- Find pathes to mailboxes. local p = io.popen("find " .. mailpath .. - " -mindepth 1 -maxdepth 2 -type d" .. - " -not -name .git") + " -mindepth 1 -maxdepth 2 -type d" .. + " -not -name .git") local boxes = {} repeat line = p:read("*l")