Browse Source

Fix calendar colouring of current day

master
Maxime Wack 7 months ago
parent
commit
5bdbb5867e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      .config/conky/conky.lua

+ 2
- 0
.config/conky/conky.lua View File

@@ -124,10 +124,12 @@ function calendar(cr, x, y)
for substr in string.gmatch(line, "[^]+") do
if substr:match("%[7m") then
color = {.45, .65, .9, 1}
xt = xt + 3
else
color = nil
end
substr = substr:gsub("%[.?7m", "")
substr = substr:gsub("%[.?0m", "")
emboss(cr, x + xt, y + yt, substr, 0, size, nil, color, "Fira Code")
xt = xt + .6*size * utf8.len(substr)
end


Loading…
Cancel
Save