You know you hit some weird geekish corner when the "howtos" you find are all different blogs proposing the same thing (yes, that is seven different blog posts, because I stopped at the first page on Google). The worst thing is that all of those use their own weird and funky way to implement a very simple thing: a GUI-thing-popup-when-someone-pings-you-on-IRC and all I needed was nothing that complex: just a simple plugin that pops up a window. No SSH tunnel, no python package, no special configuration other than what I'll detail here.

The trick is, of course, that I already have a setup that's friendly to that. I already had configured my local laptop irssi to talk to my always running irssi through a proxy. That is setup like this:

#! /bin/sh
cd $HOME
if [ -e ] && pidof `cat`; then
    echo "tunnel already started, pid: " `cat`
    if [ -e ] ; then
        rm -f
        echo "removing stale lockfile"
    cmd="ssh -a -f -L 7777:localhost:7777 -L 7778:localhost:7778 -L 7779:localhost:7779 -NT"
    # can't use & because then we don't get the password prompt fast enough
    # can't rely on $! because ssh backgrounds by itself
    pid=`ps ax | grep "$cmd" | grep -v grep | awk '{print $1}'`
    if [ "$pid" -gt 0 ] ; then
        echo $pid >
        echo "cannot start tunnel, aborting"
        exit 1
irssi --config=.irssi/config.proxy
echo "closing tunnel: $tunnel"
kill $tunnel && rm

This is the hard part, admittedly, but it's not the point of the post. The point of the post is the stupidly easy part:

cd .irssi/scripts
ln -s ../ autorun/
wget # optional
./irssi_proxy # the script above, also optional, you could just use irssi locally
/load perl
/script load notify
/set notify_icon /home/anarcat/.irssi/scripts/irssi_mini.png # optional (yes, need the full freaking path)
/msg anarcat test # should "just work"

And voilà. Got notifications running. So now on IRC, you can really piss me off by filling the screen with crap.

effectivement, il manque

effectivement, il manque l'autorun, bonne remarque. :)

autrement je peux faire remarquer que j'utilise encore le truc, mais en plus maintenant j'ai bitlbee de configuré dans mon setup ce qui fait que j'ai aussi mon IM qui apparaît au travers...

Comment by anarcat
another way

another option:

i documented this here:

but of course i didn't find this page until after i had figure it out myself :)

Comment by mvc
Comments on this page are closed.
Created . Edited .