]> git.rmz.io Git - dotfiles.git/commitdiff
awesome: fix calendar formatting
authorSamir Benmendil <me@rmz.io>
Tue, 6 Feb 2024 22:19:59 +0000 (22:19 +0000)
committerSamir Benmendil <me@rmz.io>
Wed, 21 Feb 2024 01:26:30 +0000 (01:26 +0000)
The code returned to reset the color seems to have changed. This caused
the rest of the formatting to break and no highlighting to be applied at
all.

awesome/widgets/calendar.lua

index a8acb07aa8249806f58f83bbc55c5d8a8dad9814..3206253daf5dd3efba4279fcb2c8d0005b2ffa93 100644 (file)
@@ -84,7 +84,7 @@ function calendar:show(inc_offset)
     text = text:gsub("\e%[7m","<b><span "
         .. "foreground='"..calendar.bg .. "' "
         .. "background='"..calendar.fg .. "'>")
-    text = text:gsub("\e%[27m", "</span></b>")
+    text = text:gsub("\e%[0m", "</span></b>")
 
     cal_notification = naughty.notify({
         text = text,