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