improvement: Calendar preview: weeks start on Mondays

This commit is contained in:
2025-06-15 21:07:15 +02:00
parent 06020740cc
commit 0b8066923b
3 changed files with 38 additions and 11 deletions

18
src/awk/calannot.awk Normal file
View File

@@ -0,0 +1,18 @@
BEGIN {
BLACK = "\033[1;30m"
GREEN = "\033[1;32m"
RED = "\033[1;31m"
FAINT = "\033[2m"
BOLD = "\033[1m"
BG = "\033[41m"
OFF = "\033[m"
day = day + 0
cur = cur + 0
}
NR == 1 { print GREEN $0 OFF; next }
NR == 2 { print FAINT $0 OFF; next }
{
sub("\\y"cur"\\y", BG BLACK BOLD cur OFF)
sub("\\y"day"\\y", RED BOLD day OFF)
print
}