mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 04:20:03 +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)
|
local cal = awful.util.pread("ncal -h -w -m " .. datespec)
|
||||||
-- Highlight the current date and month
|
-- Highlight the current date and month
|
||||||
if offset == 0 then
|
if offset == 0 then
|
||||||
cal = cal:gsub(string.format("( %d )", curdate.day),
|
cal, n = cal:gsub(string.format("( %d)([ \n])", curdate.day),
|
||||||
string.format('<span color="%s">%%1</span>',
|
string.format('<span color="%s">%%1</span>%%2',
|
||||||
beautiful.fg_widget_clock),
|
beautiful.fg_widget_clock),
|
||||||
1)
|
1)
|
||||||
end
|
end
|
||||||
-- Month and year
|
-- Month and year
|
||||||
cal = cal:gsub("^( +[^ ]+ [0-9]+) *",
|
cal = cal:gsub("^( +[^ ]+ [0-9]+) *",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue