Just realized that unix fortune goodness is available on Mac OS X quite simply by typing:
fink install fortune-mod
(Fink can be obtained here). And of course, it can all be combined with growl goodness to produce this:
Quite neat, eh? Well it’s quite simple, all you need is growlnotify, and to write a simple script:
#!/bin/bash
msg=$(/sw/bin/fortune)
/usr/local/bin/growlnotify -s --image /Users/anshul/Pictures/gnu-head-tiny.jpg -m "$msg"
With this, add it to your cron jobs, startup items, quicksilver triggers or whatever else you want, and enjoy :)
(Of course I chose to use the gnu logo for the icon, you can put in any JPG file, or none if you so wish)

4 Comments
This is what is so much fun about the mac man :). Also, did you see the mouse wand story on digg?
Yeah but that isn’t nearly as fun. It’s hugely expensive for one, and secondly, you don’t really go dancing with the wand all the time. I setup a cronjob for this to pop up on growl every hour. Just too good :D
I just got this idea! I guess I’m 2 months behind ya. I guess I should have searched harder!! ha ha. :) nice implementation.
I’m going to use it in a slightly different way- think user-defined fortune files using quicksilver’s append text feature. ;)
True enough… In fact, just write a bash script that does:
pbpaste | cat > fortune_user.txtand assign it to a QS trigger to add clipboard copied text to your user file.Post a Comment