Originally Posted by
paramvir
HAAAAAA - got the pesky little url... can't get away from me lol
Good job, detective (on all the fixes)!
Allow me to interject something off-topic here...
I noticed that somebody (above) is still using version 8 of my calendar code.
The cal code is currently sitting at version 9 (yes, it took me 9 tries to get it right).
I've been running the "experimental" version 9 cal code for many months, but I didn't realize (until I just looked) that it required some maintenance, updating, commenting, and so forth, and so on. It was due to "expire" (go stale) at the end of June 2013.
Here is the latest update:
Code:
##################################
## CALENDAR ##
##################################
${voffset 4}${font DroidSans:bold:size=8}${color4}DATE${offset 8}${color6}${voffset -2}${hr 1}${font}
${voffset 18}${font DroidSansMono:size=7.55}${color2}${alignc 60}${time %A}${font}
${voffset -4}${font DroidSansFallback:bold:size=18}${if_match ${time %e}<=9}${color3}${alignc 65}${time %e}${font}${else}${if_match ${time %e}>=10}${color3}${alignc 60}${time %e}${endif}${endif}${font}
${voffset 0}${font DroidSansMono:size=7.55}${color2}${alignc 60}${time %B}${font}
${voffset 0}${font DroidSansMono:size=7.6}${color2}${alignc 60}${time %Y}${font}
${voffset -80}${font CutOutsFor3DFX:size=67}${color7}${alignc 99}2${font}
####
## Uncomment for "SUNDAY = First Day-of-the-Week" valid Jun.2013 - Dec.2014 (use mono fonts only)
## Manually tweaked for proper alignment of annoying months with six calendar weeks.
${if_match "${time %b %G}"=="Jun 2013"}${voffset -76}${else}${if_match "${time %b %G}"=="Mar 2014"}${voffset -76}${else}${if_match "${time %b %G}"=="Aug 2014"}${voffset -76}${else}${if_match "${time %b %G}"=="Nov 2014"}${voffset -76}${else}${voffset -70}${endif}${endif}${endif}${endif}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
####
## Uncomment for "MONDAY = First Day-of-the-Week" valid Jun.2013 - Dec.2014 (use mono fonts only)
## Manually tweaked for proper alignment of annoying months with six calendar weeks.
# ${if_match "${time %b %G}"=="Sep 2013"}${voffset -76}${else}${if_match "${time %b %G}"=="Dec 2013"}${voffset -76}${else}${if_match "${time %b %G}"=="Mar 2014"}${voffset -76}${else}${voffset -70}${endif}${endif}${endif}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; ncal -M -C -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
Hopefully, the "commenting" explains it all...
That said, it never occurred to me, until today, that the "pesky" months with six calendar weeks are different for weeks starting on Sunday, and weeks starting on Monday. Nobody complained, and I never noticed it. Sorry!
Anyway, I think I pegged it, for the next year_and_a_half (2013/2014).
If there are any problem(s), let me know.
June 2013 / First Day of Week, Sunday / Six Calendar Weeks
June 2013 / First Day of Week, Monday / Five Calendar Weeks
Okay, back on-topic...
Bookmarks