Blog Post

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

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.

This entry was posted in Linux and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
  • Subscribe to nixternal.com

     Subscribe in a reader

    Or, subscribe via email:
    Enter your email address:

  • Archives




semidetached
semidetached
semidetached
semidetached
%d bloggers like this: