From: copycat-killer Date: Tue, 24 Jan 2017 21:03:48 +0000 (+0100) Subject: cal: terminal-colors.d independent highlight matching pattern X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/32eddd514f8ccc35eeaa128a441f6a47708e6a04 cal: terminal-colors.d independent highlight matching pattern --- diff --git a/widgets/calendar.lua b/widgets/calendar.lua index 7988ba2..76284f5 100644 --- a/widgets/calendar.lua +++ b/widgets/calendar.lua @@ -69,7 +69,7 @@ function calendar.show(t_out, inc_offset, scr) async(f, function(ws) fg, bg = calendar.notification_preset.fg, calendar.notification_preset.bg - ws = ws:gsub("%c%[7m%d+%c%[27m", markup.bold(markup.color(bg, fg, today))) + ws = ws:gsub("%c%[%d+[m]?%d+%c%[%d+[m]?", markup.bold(markup.color(bg, fg, today))) calendar.notification = naughty.notify({ preset = calendar.notification_preset, text = ws:gsub("\n*$", ""),