Skip to content

fortune, growl and Mac goodness

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:

Fortune cookies

Quite neat, eh? Well it’s quite simple, all you need is growlnotify, and to write a simple script:

/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)


  1. AC wrote:

    This is what is so much fun about the mac man :). Also, did you see the mouse wand story on digg?

    Wednesday, May 31, 2006 at 9:42 pm | Permalink
  2. Anshul wrote:

    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

    Wednesday, May 31, 2006 at 11:49 pm | Permalink
  3. Allen H. wrote:

    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. ;)

    Tuesday, July 11, 2006 at 10:35 am | Permalink
  4. Anshul wrote:

    True enough… In fact, just write a bash script that does:

    pbpaste | cat > fortune_user.txt and assign it to a QS trigger to add clipboard copied text to your user file.

    Tuesday, July 11, 2006 at 3:21 pm | Permalink

Post a Comment

Your email is never published nor shared.