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

Great website here, really

Great website here, really useful and interesting information. Thanks a lot for all your efforts, and please keep the great work up!
Tips Cepat Hamil - yamaha r15 dan yamaha r25 motor sport racing dan kencang - camry mobil hybrid terbaik indonesia - asus zenfone smartphone android terbaik - cipto junaedy

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.

Thanks for sharing.... Nice

Thanks for sharing.... Nice posting...

| sewa rumah harian di jogja | tiket pesawat promo

Trying to say much obliged

Trying to say much obliged won't simply be sufficient, for the fantasti c clarity in your written work. I will right away snatch your rss channel to stay educated of any upgrades.
heating and airconditioning repair mclean va

In order to easily make ultra

In order to easily make ultra strong hash brownies you need them to be loaded with hash, but taste good at the same time. When making hash brownies the main ingredient and most important part is...find it out here: hash browniess. Enjoy!

This is the kind of article

This is the kind of article that I was expecting from you. There is pure boldness in the article. The kind of boldness that is hard to find in any other article. That, for me, makes this one of the best articles. I hope that you continue to deliver this quality work in the future as well. jay servidio

Took personal time to peruse

Took personal time to peruse all the remarks, yet I truly reveled in the article. It turned out to be Very useful to me and I am certain to all the commentators here! It's generally decent when you can be educated, as well as entertained!
Houston home inspectors

When looking for a place to

When looking for a place to stay it’s important to remember there is more to comfort than meets the eye. Try not to judge too quickly based on the pictures – take some time to browse and consider the features and experiences each accommodation has to offer. Always go for the best accommodation! hunter valley accommodation

You should comment on the competition comparison of the blog. You can highlight it's mind boggling. Your blog exploration/tour will broaden your conversions. |

I likewise profit from taking

I likewise profit from taking in the appraisals, however discover that alot of individuals should stay on article to attempt and include worth toward the real weblog discharge.
chapter 13 bankruptcy attorney texas

Keeping up a healthy

Keeping up a healthy pregnancy diet nourishment is the number 1 way to securing your tyke’s prosperity while he or she is inside your womb. With that you really need to know what to eat during pregnancy, that you may or may not eat normally, to give that extra boost of help to your body and the baby.

nice work!!

Certainly a fantastic piece of work ... It has relevant information. Thanks for posting this. Your blog is so interesting and very informative.Thanks sharing. Definitely a great piece of work Thanks for your work. backlinks

Artemis Hospital, spread

Artemis Hospital, spread across 9 acres, is a 350 bed, state-of-the-art multi-speciality hospital located at Gurgaon, in the Capital Region, India. Artemis Hospital is the first JCI and NABH accredited hospital in Gurgaon.
Hospital in gurgaon
Liver transplant in gurgaon
Cardiology hospital in gurgaon
Best ent Hospital in gurgaon

Nice article. Really nice. I

Nice article. Really nice. I have a hunch that this is going to be a really top class article in the future. This has earned my 100% respect. I am sure after some time it will earn other's respect as well. mail order marijuana

I thought it was going to be

I thought it was going to be some exhausting old post, however it truly made up for my time. I will present a connection on this page on my web journal. I am certain my guests will find that extremely helpful.
herbalist winder

A really amazing and good

A really amazing and good site this is, for reading blogs. I have read many of your blogs over the months and I have liked each one of them very well. You give the best to us and I really wish that this will be the case in the future as well. Cheers! adult online business

Really great post, Thank you

Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place.

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.