From c47857046f627ec5c80c8f8dbf9527cf1606a4b0 Mon Sep 17 00:00:00 2001 From: copycat-killer Date: Tue, 1 Mar 2016 18:49:58 +0100 Subject: [PATCH] calendar: sed spaces; #170 #174 --- widgets/calendar.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" -- 2.39.2