Blog Post

Tweet

Notify Works in Kubuntu

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

Replaceuser@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.

This entry was posted in Linux and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
  • http://blog.ryanak.ca/archives/12 /dev/brain » Blog Archive » Fancy desktop notification for irssi!

    [...] 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 [...]

  • http://blog.ryanak.ca/archives/13 /dev/brain » Blog Archive » Fancy desktop notification for irssi!

    [...] 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 [...]

  • Pedro Algarvio, aka, s0undt3ch

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

  • Bryann

    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?

  • Subscribe to nixternal.com

     Subscribe in a reader

    Or, subscribe via email:
    Enter your email address:

  • Archives

semidetached
semidetached
semidetached
semidetached