Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 whoever posted them. This site is not responsible for what they say.
Highlight the current date on a GeekTool 'cal' geeklet
Authored by: jpkelly on Nov 02, '09 02:13:18PM

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 Nov 03, '09 02:52:36PM
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 Nov 03, '09 02:57:26PM
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 | # ]