X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/5b266ecf16c30674abb42f49acfb003c86564531..de72508c786f2e659ed34d2ec329f946965d7696:/widget/calendar.lua diff --git a/widget/calendar.lua b/widget/calendar.lua index 99e8817..d289ebb 100644 --- a/widget/calendar.lua +++ b/widget/calendar.lua @@ -38,8 +38,8 @@ function calendar.show(t_out, inc_offset, scr) if current_month then -- today highlighted calendar.offset = 0 - calendar.icon = string.format("%s%s.png", calendar.icons, tonumber(os.date("%d"))) - f = calendar.cal + calendar.icon = calendar.icons:len() > 0 and string.format("%s%s.png", calendar.icons, tonumber(os.date("%d"))) + f = calendar.cal else -- no current month showing, no day to highlight local month = tonumber(os.date("%m")) local year = tonumber(os.date("%Y"))