Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'Highlight the current date on a GeekTool 'cal' geeklet' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Highlight the current date on a GeekTool 'cal' geeklet
Authored by: jpkelly on Mon, Nov 2 2009 at 2:13PM PST
i like this because it uses a single geeklet but...
on november 2 the 2 of 2009 was lit up.

[ Reply to This | # ]
Highlight the current date on a GeekTool 'cal' geeklet
Authored by: boob on Tue, Nov 3 2009 at 2:52PM PST
yop, you are right, didn't notice that.. i fixed it like this (it 's nearly midnight here, so it's not the best solution maybe, but it seems to work :)) i tried to set "today" to few random days and it seemed fine..
cal_head=`cal | head -1`; cal_tail=`cal | tail -7`; today=`date -v+14d "+%e"`; echo "$cal_head"; echo -en "${cal_tail/${today}/\033[1;32m${today}\033[0m}";


[ Reply to This | # ]
Highlight the current date on a GeekTool 'cal' geeklet
Authored by: boob on Tue, Nov 3 2009 at 2:57PM PST
argh.. without "-v+14d" of couse, so it should be
cal_head=`cal | head -1`; cal_tail=`cal | tail -7`; today=`date "+%e"`; echo "$cal_head"; echo -en "${cal_tail/${today}/\033[1;32m${today}\033[0m}";
where it "edit" button.. it was here here, wasn't it ? :)

[ Reply to This | # ]