Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hashworks/irssi-libnotify

A Perl script plugin for irssi that uses D-Bus and libnotify to give desktop users alerts when messages of interest appear.
https://github.com/hashworks/irssi-libnotify

Last synced: about 1 month ago
JSON representation

A Perl script plugin for irssi that uses D-Bus and libnotify to give desktop users alerts when messages of interest appear.

Awesome Lists containing this project

README

        

# irssi-libnotify

This is a fork of [stickster's irssi-libnotify](http://code.google.com/p/irssi-libnotify/).

The only difference are more configuration variables:
* notify_sh_path - set the path of `irssi-notifier.sh`
* notify_start_offset - disable notifications for X seconds after load, defaults to 0

irssi-libnotify is a slightly nicer D-Bus approach that plays nicely with the GNOME Shell's notification area. If you are looking for the older, simpler version using libnotify, simply check out the old-libnotify branch instead.

To make this script work better for people who use irssi remotely via SSH (often with screen), I've separated out the actual notifier into a small listener program. That piece is written in Python so it should be easy to read and understand.

### REQUIREMENTS

* irssi
* libnotify >= 0.7 (but slightly older libnotify may work)
* pygobject >= 3.0
* perl-HTML-Parser

### INSTRUCTIONS

1. Clone this repository.
2. Excecute `notify-listener.py` when your desktop environment is loaded.
3. Link `notify.pl` to `$HOME/.irssi/scripts/` (or `$HOME/.irssi/scripts/autorun/`).
4. Set the path of `irssi-notifier.sh` by `/SET notify_sh_path `
5. Load the script by `/load notify.pl` or `/load autorun/notify.pl`

If you are running irssi remotely, currently your remote machine account would need to be able to SSH back to your local box without a passphrase. You'll need to set that up yourself, using 'ssh-copy-id' or another method.



Then in irssi, use `/SET notify_remote ` to activate the remote notification bit. Replace with the name or IP address of the local machine you're on, *as it would be known to the remote machine*. This is most useful if you're on the same local network with the other box; firewalls or other non-local routing will probably make it difficult to use this feature.



In the future I'm going to add a feature to provide messages raw over a remotely forwarded port, so you won't need any special key handling or have to worry about firewalls and other such stuff. Thanks for trying this out.