Mon, 14 Aug 2006

irssi notification script

Having finals to deal with next week, I've been trying to avoid things that tend to waste huge amounts of time, such as email and IRC. So I wrote a little irssi script to pop up notifcation bubbles when people talk to you.

*Update (20090916)*

Years later, and I can't really vouch for this code anymore, as I don't use it. I recommend using it at your own risk, as there could potentially be security implications, since it is unmaintained. However, this script was the catalyst for a variety of improved implementations, such as irssi-libnotify, fnotify, irssi-notify, etc.
## Put me in ~/.irssi/scripts, and then execute the following in irssi:
##       /load perl
##       /script load notify

use strict;
use Irssi;
use vars qw($VERSION %IRSSI);

$VERSION = "0.01";
%IRSSI = (
    authors     => 'Luke Macken',
    contact     => '',
    name        => '',
    description => 'TODO',
    license     => 'GNU General Public License',
    url         => '',

sub notify {
    my ($dest, $text, $stripped) = @_;
    my $server = $dest->{server};

    return if (!$server || !($dest->{level} & MSGLEVEL_HILIGHT));

    $stripped =~ s/[^a-zA-Z0-9 .,!?\@:\>]//g;
    system("notify-send -i gtk-dialog-info -t 5000 '$dest->{target}' '$stripped'");

Irssi::signal_add('print text', 'notify');

posted at: 06:43 | link | Tags: , | 10 comments

Posted by software download at Thu Feb 16 06:05:22 2017

Danke fuer die schoene Zeit auf dieser Webseite. Macht weiter so.
Da kommt man gerne wieder.

Posted by cabo fishing trip advisor at Thu Oct 12 20:13:05 2017

If you want to take much from this post then you have to
apply such techniques to your won website.

Posted by chung cu giang vo at Tue May 22 23:28:49 2018

Được chuẩn bị xếp hợp lý ngay trong Khu đô

Posted by không giấy phép lái xe phạt bao nhiêu at Mon Jul 9 15:26:19 2018

Bước 5: Học lùi, tiến và ghép xe.(ghép dọc).

Posted by Roseanna at Tue Aug 21 18:27:21 2018

Hi there, I want to subscribe for this blog to take most recent
updates, so where can i do it please assist.

Posted by dây điện at Sun Oct 7 16:02:57 2018

Có kinh nghiệm 1-three năm trong lĩnh vực điện.

Posted by techsmithCoupon at Thu Mar 14 09:29:58 2019

such a beautiful content i think you need some software to maximize your roi get techsmith coupon code to get all sotwares at best price

Posted by webhostingscoupon at Fri Mar 29 10:45:11 2019

visit us to get best web hosting at cheapest price

Posted by mua rèm cửa sổ at Sun Apr 28 07:10:38 2019

Tôi muốn bên công ty qua khảo sát và xem mẫu thực tế.

Posted by at Mon Jun 3 11:23:24 2019

Dziękuję za informacje! Szukałem i nie mogłem znaleźć. Pomogłeś mi!