Here's my desktop. Using Geektool for the date, current weather, top labels, lines and in conjunction with icalBuddy for the calendar stuff. Bowtie is for itunes (Zukunft Condensed White theme) and WideScape weather for Yahoo Widgets for the forecast. Dateline for the date bar at the bottom.
Let me know what you think!
Can someone tell me how to mix data and my own wording on a single line?
Can someone tell me how to mix data and my own wording on a single line?
curl --silent "http://weather.yahooapis.com/forecastrss?p=USNY0996&u=f" | grep -e "Forecast:" -A 2 | tail -n 1 | sed -e 's/<br \/>//' | sed -e 's/.* -/Tomorrow:/' | sed -e 's/High: /High of /' | sed -e 's/Low:/- Low of/'
Tomorrow: Mostly Sunny. High of 90 - Low of 71
Here's my desktop. Using Geektool for the date, current weather, top labels, lines and in conjunction with icalBuddy for the calendar stuff. Bowtie is for itunes (Zukunft Condensed White theme) and WideScape weather for Yahoo Widgets for the forecast. Dateline for the date bar at the bottom.
Let me know what you think!
amazing, any chance you could share the script?
echo "HEADING GOES HERE"
/usr/local/bin/icalBuddy -f -sd -ic Personal -df "%a, %b %d" -nc uncompletedTasks
/usr/local/bin/icalBuddy -f -n -eep notes -eep url -sd -df "%a, %b %e" -ec Automator eventsToday
#!/bin/bash
#
# Prints tomorrow's events using icalBuddy
#
day_in_seconds=86400
two_days_in_seconds=172800
# get current seconds since the epoch
sec=`date +%s`
# get tomorrows date as seconds since the epoch
sec_tomorrow=`expr ${sec} + ${day_in_seconds}`
sec_day_after_tomorrow=`expr ${sec} + ${two_days_in_seconds}`
# 'start' date/time, in the format required by icalBuddy
start_dt="`date -r ${sec_tomorrow} +'%Y-%m-%d 00:00:00 %z'`"
# 'end' date/time, in the format required by icalBuddy
end_dt="`date -r ${sec_day_after_tomorrow} +'%Y-%m-%d 23:59:59 %z'`"
/usr/local/bin/icalBuddy -f -sd -eep * -df "%a, %b %e" -ec Automator eventsFrom:"${start_dt}" to:"${end_dt}"
#/usr/local/bin/icalBuddy eventsFrom:"${start_dt}" to:"${end_dt}"
/usr/local/bin/icalBuddy -f -sc -ec Personal -df "%a, %b %d" -nc uncompletedTasks
date "+%A"
date +%d
date +%B
curl --silent "http://weather.yahooapis.com/forecastrss?w=8775&u=c" | grep -E '(Current Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' -e 's/\(.*\) C/\1°C/' | tail -n1
As far as I know, those are hard-coded in, so no you cannot capitalize them (if you really want them, email the developer from the icalbuddy website and suggest itCan you change the "today", "tomorrow" and "day after tomorrow" to be capitalised?
That's changeable in the config file. Get to it by entering:Can you change what is displayed when there are no events, instead of "Nothing." I'd like No Events or something.
icalBuddy editConfig
The colours available to icalbuddy to use are the 16 colours via the ANSI escape sequences (http://en.wikipedia.org/wiki/ANSI_escape_code#Colors) so that's what you have to choose from. The event title colour by default is chosen to try to match the colour used for the calendar in iCal. If it can't match it, then white is used. To change the colour of the event title, for example, follow the same process as above to change the config file, but use "titleValue" for the key (again, no quotes; case sensitive) and the color (from the available colours on the Wikipedia page) for the value.Can you use colors other than "green" and "blue" etc., I'd like a light grey, but "grey" doesn't work.
I have never used geektool/nerdtool, but intend to learn..
would you mind explaining how you got the calendar/to-do info to appear on your desktop?
and quick question: does that setup make your data accessible/changeable through the desktop?
can we do an "if" fonction for the colors? what I want to do is put the different color for the calendar names (calendarNameInTitle). is it possible? i tried changing the type, putting the if in the the key, and in the value, but it didnt work...The colours available to icalbuddy to use are the 16 colours via the ANSI escape sequences (http://en.wikipedia.org/wiki/ANSI_escape_code#Colors) so that's what you have to choose from. The event title colour by default is chosen to try to match the colour used for the calendar in iCal. If it can't match it, then white is used. To change the colour of the event title, for example, follow the same process as above to change the config file, but use "titleValue" for the key (again, no quotes; case sensitive) and the color (from the available colours on the Wikipedia page) for the value.
Take a look at the man page for the config file (http://hasseg.org/icalBuddy/config-man.html) for all of the formatting options for icalbuddy (there's a ton!) and some of the finer details.
Hope that helps! Let me know if you have any more questions.
can we do an "if" fonction for the colors? what I want to do is put the different color for the calendar names (calendarNameInTitle). is it possible? i tried changing the type, putting the if in the the key, and in the value, but it didnt work...
thanks for the help!![]()
As far as I know you can't do if statements (without modifying the source code anyways). At least I certainly haven't read anywhere about being able to do that (I think config files in general don't support the "if" function, they are pretty basic).
ok
thanks anyway for the quick answer!
edit: couldnt we use the "formattedKeywords" key for it? I didnt understood its fonction... :S
ok, got it... I think that when I tried last time, I've put the child in the root key rather than the formattedKeywords one...I actually had just noticed this as well....was looking at the man page again! You just add an item under root (same level as "formatting") that is called "formattedKeywords" and make it's type "dictionary", then add children to that. The key of each of those children is the keyword you want formatted and the value is how you want them formatted. I have tested this and it does work
So, for an example, say you want every instance of the word "Big" that ever appears in the output to be coloured cyan, you add a child to "formattedKeywords" with a key of "Big" and a value of "cyan" (all without quotes of course). Each child is a different keyword.
That's changeable in the config file. Get to it by entering:
in the terminal (if you haven't opened the config file before, then it does not exist and will be created automatically). Then, expand "formatting" and add a child. Enter "noItems" (without the quotes; case sensitive) for the key, and whatever you want stated when there are no items for the value (without quotes). Type is always string.Code:icalBuddy editConfig
<key>noItems</key>
<string>No Events</string>
Thank a lot for your help bobbob101!!
I can't get this to work though, whatever I change it to, it still comes up as Nothing.
I have:
Code:<key>noItems</key> <string>No Events</string>
in the config file.
Thanks!
same here... but I have something that might work (once again, I have the feeling thats it, but I cant make it work...)
http://hasseg.org/icalBuddy/localization-man.html
Can you change the "today", "tomorrow" and "day after tomorrow" to be capitalised?
That works!! Good call on that one!
Open up "Property List Editor" (application...don't know if you need developer tools to have it).
Save a new file in your home directory as ".icalBuddyLocalization.plist" (don't forget the "." in front of the name!).
Add a child to "root" with a key of "noItems", and the value is the text you want displayed instead of "Nothing.". Of course, everything without the quotes
Following a similar process, but with different keys (as listed on the man page) you can also get the capitals for "today, etc" and change pretty well everything (it looks like this part was designed for translation, but eh, this works as well!)
Sup,
I followed your steps but for some odd reason I did not get the outcome that everyone has gotten.
Did I miss something in the process?
regards
same here... but I have something that might work (once again, I have the feeling thats it, but I cant make it work...)
http://hasseg.org/icalBuddy/localization-man.html
edit: i just need to know what this means...
"The icalBuddy localization file should be saved in ~/.icalBuddyLocalization.plist"
After, its a piece of cake! I really cant find it!
edit2: lol well im glad it worked!![]()
Here's mine so far. Haven't decided what to do with iCal events yet! I want them somewhere, just don't know where!![]()