mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 12:30:01 +02:00
widgets: tentative to fix calendar for days of last week
This commit is contained in:
parent
8dbbf54daa
commit
ceaac5525e
1 changed files with 4 additions and 4 deletions
|
@ -43,10 +43,10 @@ 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>',
|
||||
beautiful.fg_widget_clock),
|
||||
1)
|
||||
cal, n = cal:gsub(string.format("( %d)([ \n])", curdate.day),
|
||||
string.format('<span color="%s">%%1</span>%%2',
|
||||
beautiful.fg_widget_clock),
|
||||
1)
|
||||
end
|
||||
-- Month and year
|
||||
cal = cal:gsub("^( +[^ ]+ [0-9]+) *",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue