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

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.
  • Subscribe to nixternal.com

     Subscribe in a reader

    Or, subscribe via email:
    Enter your email address:

  • Archives



  • Twitter Updates

    • AWESOME RUNNING STRETCH CATCH INTO THE LEFT CENTER GAP: youtu.be/raMbv1XL_WQ via @youtube » 15 hours ago
    • oh well, time to go ride my bicycle. "i can ride my bike with no handlebars, no handlebars, no handlebars" » 20 hours ago
    • i swear, if something doesn't kick off for this nato crap, i will be pissed. nothing on tv this weekend :/ » 20 hours ago
    • why are there police cars from charlotte, nc here in chicago? saw that earlier & a ton of military vehicles in schaumburg » 20 hours ago
    • @WorkbridgeCHI yeah, me either. there must be some underground work going on around here » 20 hours ago
semidetached
semidetached
semidetached
semidetached