From: lcpz Date: Thu, 15 Nov 2018 10:59:52 +0000 (+0000) Subject: widget.cal: fix calendar icons not displaying; closes #410 X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/4f3babced781559863e7300491c8d6f0e228810e?ds=sidebyside;hp=-c widget.cal: fix calendar icons not displaying; closes #410 --- 4f3babced781559863e7300491c8d6f0e228810e 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 diff --git a/wiki b/wiki index e611812..7c3a5bf 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit e6118121ad7e2c2a6d7a846e1ffc3762a42d5fe1 +Subproject commit 7c3a5bfba6e779a86169a6cbb1eaf20bf19627f7