Hooking up Irssi to Growl November 28, 2007
Posted by Björn in : software , trackbackWhile keeping an Irssi session running in the background it’s good to be notified when someone calls your name. Enter growl.pl, a script that sends out Growl notifications.
It’s not very hard to set up but it requires an extra package. There are some basic instructions on the Growl site. I used Fink to install Irssi which already has Perl support so I could skip the first step.
Get the SDK here if you don’t have the Perl bindings for Growl yet. If Mac-Growl is already installed on your system you can skip this. Load the disk image and go to Bindings/perl/Mac-Growl. To install the module run these commands:
perl Makefile.PL
sudo make
make test
sudo make install
When running the make test line you should get a few test notifications. If that works you can execute the install command. You should read the README file for more information.
Once you have the Perl bindings you need to install the script. Finding it was the hardest part. It’s supposed to come with Growl but it wasn’t clear in which directory it is. Eventually I found it and I’m keeping a copy here for future reference. Put it in ~/.irssi/scripts (or ~/.irssi/scripts/autorun) and load the script in Irssi with /load script growl.pl.
Now you can set up the notification the way you want in Growl. I added a little ping sound to get my attention.
Update: I fixed the link to the script. Make sure you rename it to growl.pl after downloading. I had to strip the extension because Apache wants to execute the script.
Comments»
I added directions for installing via macports at, http://atmos.org/post/28313931
[…] it turns out, someone else already did. And not only that, someone else took the time to explain in meaningful detail how to get the whole thing working. So, now I have […]