Irssi libnotify integration

I came across irssi-libnotify integration in a picture in blog post I read this morning.

I thought about this, and decided that this was something I had to have. I often don’t pay attention to my IRC while I’m busy with something else, and miss out on a conversation that I’m being hailed in. (By something else, I’m meaning non-important, non-masked-interrupts-something-else.)

It isn’t an easy problem to solve, though. Irssi is running on a remote machine inside screen. I’ll be accessing it from one of many machines, possibly NATed, and possibly unable to receive incoming TCP connections.

I googled around a bit, and came across 3 main classes of solution to this problem:

  1. Run libnotify directly on the irssi-box, and use ssh’s X-forwarding to display it on my client. This is sub-optimal, because your X server isn’t always available. Example: irssi-libnotify (which requires the module to be reloaded every time you re-attach screen)
  2. Output all hilighted messages to a log file (using fnotfiy), and tail that log file with a second ssh session into a local script that calls libnotify. Sub-optimal, because it requires manually running a second ssh session, and restarting it in the event of network issues. Example
  3. Send notify events down the Print Channel of the terminal. This will pass through screen, and pop out at your terminal-emulator. xterm and rxvt are both capable of then sending them to an arbitrary command (which could call libnotify). This is quite a clever hack, except that gnome-terminal doesn’t support it. Example

As you can see, they all have major short-comings, and I wasn’t about to implement any of them.

Finally, I realized that Jabber would be a good way to hail me. My laptop / desktop / n800 / foo all run jabber clients. Perfect. I googled, and found a few pre-canned solutions. I settled for jabber-hilight-notify. It runs a jabber client in a perl irssi script. This then sends me a message whenever a hilighted line crops up. (Assuming I’m not in “Do Not Distrub” mode)

I initially had some problems with getting jabber-hilight-notify working. It turns out that setting a custom resource string is a bad idea. My final config was:

jabber_hilight_notify_target =
jabber_password = xxxxxxxx
jabber_id =
jabber_server_reconnect_time = 60
jabber_hilight_notify_target_presence = online chat away xa
jabber_hilight_notify_when_away = OFF

My Pidgin provides the libnotify integration, although jabber-hilight-notify’s designed to work with Tavu (a desktop-notification frontend for KDE). I think a better approach would be to use Telepathy. If such a general telepathy-based solution could be found, then it would be easy to have multiple remote daemons send notifications to you via jabber transport.

Now to see if I’m still happy with it after a week of it interrupting me.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Option 4

Cron a script that emails log content to me.

What do you mean?? Klicka här

What do you mean??

Klicka här

Weblink Interesting


Interesting question... let me know what you found out...

Option 5



I just wanted to know more

I just wanted to know more about how jabber-hilight-notify working. The code that you have shared above was really diffucult to underestand it would have been better if you had provided more information on the code and how that works as you mentioned.
apple operating systems

I considered this, and chose

I considered this, and chose that this was something I needed to have. I frequently don't give careful consideration to my IRC while I'm occupied with something else, and pass up a major opportunity for a discussion that I'm being hailed in. (By something else, I'm importance non-vital, non-covered interferes with latin translation

Thank you very much, I did

Thank you very much, I did not even know how to classify this problem! The fact that the machine is running inside the screen - this is big news for me!
personal statement anesthesiology

top essay writing reviews

Regularly learners attempt to keep away from article composing in their typical study course. Then again, they overlook that article composing is the most paramount some piece of the educational module. Today because of rivalry there is an elevated standard from learners. With the load of scholarly subjects, scholars regularly get inconsiderate about article written work in this circumstance top essays services are truly critical for them as they don't get enough time to consider creating a great paper composing ability.

Its really fantastic blog .

Its really fantastic blog . its realy informational and a such a good job. i love this! Smokers need an online tobacco store where you pay less and get a better choice of top quality EU brands... Hooky Street

I would like to thank you for

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.
Corporate video production Sydney

I helped the first way to

I helped the first way to solve this problem! It seems to me that it is the most valid to solve this problem! Running inside the screen the number of items and other processes require a lot of attention!
paraphrasing tool

There is visibly big money to

There is visibly big money to recognise about it. I assume people made sure great items within attributes in addition.

SRSG incorporated in 1997

SRSG incorporated in 1997 with a vision to provide the technology of Apple. SRSG is one and half decade old agile and adaptable company dealing with wide spectrum of broadcast IT and media technology products and services.
Apple authorized service center Delhi
ipad Service center in Guwahati
Apple iphone dealer in Mumbai

Ibeacons from Alibaba

When i thought to be this, along with selected that it had been something When i was required to possess. When i usually do not give careful Ibeacons from Alibaba consideration to be able to my IRC whilst Now i am active with something else, along with shun an essential chance of any dialogue that will Now i am becoming hailed throughout. (By something else, Now i am magnitude non-vital, non-covered disturbs something-else.

Cheap Hologram projection online

Cheap Hologram projection online There may be visibly lots of money to discover over it. I suppose people made sure fantastic objects in characteristics additionally.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.