|
|
The ultimate 3-column calendar
I found the problem in the three column display and I also analyzed the code made by redclawx and found some bad problems.
You can paste this code directly in GeekTool.
The code above is for US-kind calendars, and this is the result:
You can get a slightly narrower calendar replacing the last line with this one:
If you want an italian calendar, replace the lines from doCalUs() (included) to the end of script with the following:
And here is the result:
Also in this case, you ca get a narrower display replacing the last line with this one:
The shell commands used in this script are pr (for columnize output) and colrm (to remove some blank column in eccess).As you can see the code is modular, so you can easily modify for other localizations. The function getDate() gets called for displaying of months; it allows you to choose which months to consider: getDate 1 means one month after current, getDate -3 means the third month before the current, and so on. So, if you prefer (ennisdb? are you reading this?) to display the current month and the next two instead of the default setting, you simply have to change the doCalUs funtion to look like this one:
and here is the result:
This should satisfy ennisdb. : )(Note: getDate has a range of +/- 12 months max around the current date) Happy GeekTooling !
The ultimate 3-column calendar
wallybear,
The ultimate 3-column calendar
Not a programmer? You did a good work anyway... Just a little too much cut and paste. :)
The ultimate 3-column calendar
This is really useful... I've been tinkering with it for a while and I can't seem to get what I want. I want all 12 months of the current year with the current date highlighted. And I wanted them to be horizontal. The clocest I have gotten is having the full year in the usual cal style... any suggestions?
The ultimate 3-column calendar
The only odd thing is, with a copy/paste into GeekTool, I get the month August three times. Not July - August - September
The ultimate 3-column calendar
Strange things happen in August:
The ultimate 3-column calendar
I have the same error line.
The ultimate 3-column calendar
The problem seems to be how bash handles leading zeros, it treats the number as octal rather than base 10. Hence 8 is an invalid octal number (valid range being 0 to 7).
The ultimate 3-column calendar
By Joe,
The ultimate 3-column calendar
Actually this is a bug in bash. look here:
August bug - A solution to that nasty bash bug
The problem is due to a bug of bash. it treats '08' as an octal, because of the leading zero.
The ultimate 3-column calendar
i really like this, though i would like to have the full year. i've been tinkering and know how to make previous and future months display, but can't figure out to make it display properly except in 1 column. and having the previous and future months doesn't give me the whole year either. any help is appreciated.
The ultimate 3-column calendar
i think i figured it out. i tried:
The ultimate 3-column calendar
nevermind, this still doesn't work right. i noticed that other days are highlighted too, but only in 4 other months. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|