Notify Works in Kubuntu

March 22nd, 2007  |  Published in Kubuntu, Tutorial  |  4 Comments

notify

In response to Aaron’s blog posts (Part 1, Part 2) about IRSSI and libnotify to send you a notification upon highlight, well it works great in Kubuntu as well.

As you will notice, I use a different icon, a customized Konversation icon, and I have also changed the color of the popup by setting the urgency as well. The following is the shell script I am using, which is pretty much the same as Aaron’s just modified to suit my taste.

#!/bin/sh

ssh user@server ": > .irssi/fnotify ; tail -f .irssi/fnotify " |
sed -u 's/[<@&]//g' | while read heading message;
do /usr/bin/notify-send -u critical -i <location to icon>
-t 300000 -- "${heading}" "${message}";
done

Replace user@server with your username and server IP address. Also replace <location to icon> to the correct icon location that you want to use. An example would be /usr/share/icons/crystalsvg/48×48/apps/whatever.png.

Responses

  1. /dev/brain » Blog Archive » Fancy desktop notification for irssi! says:

    April 29th, 2007 at 15:03:50 (#)

    [...] couple of weeks ago, nixternal blogged about notify-send and irssi. In response to his entry, I read up on the Desktop Notifications Specification and learned that [...]

  2. /dev/brain » Blog Archive » Fancy desktop notification for irssi! says:

    April 29th, 2007 at 15:08:19 (#)

    [...] couple of weeks ago, nixternal blogged about notify-send and irssi on kubuntu. In response to his entry, I read up on the Desktop Notifications Specification and learned that [...]

  3. Pedro Algarvio, aka, s0undt3chNo Gravatar says:

    May 10th, 2007 at 16:38:08 (#)

    You might also be interested on Irssi Notification, a cleaner approach for the same end result which uses irssi’s proxy’s.

  4. BryannNo Gravatar says:

    November 18th, 2008 at 11:05:22 (#)

    Is there a way to make this work on the local machine as well? I assume just taking out the ssh stuff before the “tail” part in the bash script would work?

Leave a Response

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">