parent
1738f98c04
commit
c47857046f
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ local tonumber = tonumber
|
|||
local setmetatable = setmetatable
|
||||
|
||||
-- Calendar notification
|
||||
-- lain.widgets.cal
|
||||
-- lain.widgets.calendar
|
||||
local calendar = {}
|
||||
local cal_notification = nil
|
||||
|
||||
|
@ -52,7 +52,7 @@ function calendar:show(t_out, inc_offset, scr)
|
|||
calendar.notify_icon = calendar.icons .. today .. ".png"
|
||||
|
||||
-- bg and fg inverted to highlight today
|
||||
f = io.popen(string.format("%s -e '0,/%d/ s/%d/<b><span foreground=\"%s\" background=\"%s\">%d<\\/span><\\/b>/'",
|
||||
f = io.popen(string.format("%s -e '0,/%d $/ s/ %d /<b> <span foreground=\"%s\" background=\"%s\">%d<\\/span> <\\/b>/'",
|
||||
init_t, today, today, calendar.bg, calendar.fg, today))
|
||||
|
||||
else -- no current month showing, no day to highlight
|
||||
|
|
Loading…
Add table
Reference in a new issue