X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/c02fcdb2e9480927f7b0b21f38d20dd203b7d8bd..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