From: copycat-killer Date: Tue, 1 Mar 2016 17:49:58 +0000 (+0100) Subject: calendar: sed spaces; #170 #174 X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/c47857046f627ec5c80c8f8dbf9527cf1606a4b0 calendar: sed spaces; #170 #174 --- diff --git a/widgets/calendar.lua b/widgets/calendar.lua index 93f171f..b15d182 100644 --- a/widgets/calendar.lua +++ b/widgets/calendar.lua @@ -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/%d<\\/span><\\/b>/'", + f = io.popen(string.format("%s -e '0,/%d $/ s/ %d / %d<\\/span> <\\/b>/'", init_t, today, today, calendar.bg, calendar.fg, today)) 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)) end - c_text = " " .. f:read() .. "\n\n" .. f:read() .. "\n"