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: , | 31 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!

Posted by speed Up wordpress site at Thu Jul 18 08:13:34 2019

#WordPress #Performance #Optimization Best #Practices.
Use a #Content Delivery Network (CDN) Don't Upload #Videos
Directly to #WordPress. Use a #Theme #Optimized For #Speed.
Use a #Faster Slider Plugin. Use a Faster #Gallery #Plugin. @ https://goo.

Posted by speed up wordpress page at Wed Aug 7 19:26:08 2019

how to speed up WordPress dashboard and …

Posted by Kathaleen at Tue Aug 13 15:34:30 2019

Improving WordPresss Performance - Getting Started Laying a Solid Foundation for a Fast Website WordPress Performance Optimization - Best Practices Fine
Tuning Word Press for Sped Now, let’s get started. …

Posted by Akilah at Sat Aug 17 03:28:49 2019

Hoow To Speed Up Your WordPress Site ? A Complete
Guide 2018

Posted by Speed up wordpress site 2018 at Thu Aug 22 01:07:22 2019

Check new tutorial -read how tto speed up your Wordpress site using htaccess optimization

Posted by What does Taobao mean in English? at Wed Aug 28 22:58:29 2019

So you want 4th graders to learn how to work at a gas station? We started talking about shop classes.
Then it went to school choice. Then trannies.

Then changing a tire. Then Harvey Milk. LOL. This should be put on a billboard as the epitome of arguing
with a Trump supporter.

Posted by at Sun Sep 1 09:09:13 2019

Hi there to all, it's genuinely a fastidious for me to pay a quick visit this website,
it consists of helpful Information.

Posted by 해적바둑이주소 at Sun Sep 1 11:19:45 2019

Thanks for sharing your thoughts about lewk. Regards

Posted by at Tue Sep 3 00:22:01 2019

Hello everyone, it's my first pay a quick visit at this web site,
and paragraph is actually fruitful in favor of me, keep up posting these types of articles.

Posted by 홀덤 룰 at Wed Sep 4 01:22:13 2019

I do not know if it's just me or if everyone else encountering issues with your blog.
It looks like some of the written text in your posts are running
off the screen. Can somebody else please comment and let me know if this is happening to them as
well? This may be a issue with my internet browser because I've
had this happen previously. Kudos

Posted by 마카오 롤링 at Sun Sep 8 13:02:41 2019

When some one searches for his necessary thing, so he/she needs to be available that in detail, so that thing is maintained over here.

Posted by 온라인 카지노 먹튀 at Sun Sep 8 19:18:59 2019

This paragraph will help the internet viewers for setting up
new web site or even a weblog from start to end.

Posted by 싱가포르 카지노 후기 at Sun Sep 8 19:33:32 2019

I go to see every day some web pages and information sites
to read articles, however this webpage provides quality based articles.

Posted by 바카라 게임방법 at Mon Sep 9 04:15:33 2019

Nice respond in return of this matter with firm arguments
and telling all on the topic of that.

Posted by at Thu Sep 12 05:41:57 2019

magnificent issues altogether, you just gained a new reader.
What would you recommend in regards to your put up that you simply made some days ago?
Any positive?

Posted by at Thu Sep 12 17:39:16 2019

My relatives every time say that I am wasting my time here at
net, except I know I am getting knowledge daily by reading thes good

Posted by wordpress Optimization cpanel at Sat Sep 21 00:10:20 2019

Top 3 Best Image Optimization Plugins for WordPress Site ffor Free in Hindi

Posted by 사설 총판 at Tue Sep 24 00:32:43 2019

Hi there, everything is going perfectly here and
ofcourse every one is sharing data, that's truly fine, keep up writing.

Posted by หนังxเอเชีย at Wed Oct 2 05:35:38 2019

I don't even know how I ended up here, however I believed this publish was good.
I don't realize who you are but certainly you are going to a famous blogger
when you aren't already. Cheers!

Posted by porn at Thu Oct 3 07:50:27 2019

Very good information. Lucky me I recently found your site by chance
(stumbleupon). I have book marked it for later!

Posted by Situs Poker Idn Play at Thu Oct 31 09:03:38 2019

Join and feel the thrill of playing Poker Site, Domino99, Pokerqq, QQ Online, Domino Qiu, Qiu Qiu Online, Poker Qiu Qiu which gives big wins only at A trusted IDN Poker agent who gives big win big jackpot together <a href="" rel="nofollow">Situs Poker Idn Play</a>.

Supported by quality servers and very fair games 100% Player vs Player and no ROBOT interference in the MaxbetQQ Trusted Online Poker Site.