X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/448d0b1be999e40f7e84697bd25de8d1f6ac9884..4f3babced781559863e7300491c8d6f0e228810e:/widget/cal.lua diff --git a/widget/cal.lua b/widget/cal.lua index 326dc00..50426ba 100644 --- a/widget/cal.lua +++ b/widget/cal.lua @@ -47,6 +47,7 @@ local function factory(args) strx = string.format("%s%s", string.rep(" ", 3 - tostring(x):len()), strx) notifytable[#notifytable+1] = string.format("%-4s%s", strx, (x+st_day)%7==0 and x ~= mth_days and "\n" or "") end + if string.len(cal.icons or "") > 0 and today then cal.icon = cal.icons .. today .. ".png" end cal.month, cal.year = d.month, d.year return notifytable end