widgets: tentative to fix calendar for days of last week

This commit is contained in:
Vincent Bernat 2020-03-31 08:16:15 +02:00
parent 8dbbf54daa
commit ceaac5525e

View file

@ -43,8 +43,8 @@ local cal = (
local cal = awful.util.pread("ncal -h -w -m " .. datespec)
-- Highlight the current date and month
if offset == 0 then
cal = cal:gsub(string.format("( %d )", curdate.day),
string.format('<span color="%s">%%1</span>',
cal, n = cal:gsub(string.format("( %d)([ \n])", curdate.day),
string.format('<span color="%s">%%1</span>%%2',
beautiful.fg_widget_clock),
1)
end