Subscribe: Comments on knurd: thl's irssi notification script [UPDATED]
http://thorstenl.blogspot.com/feeds/4114096683036282738/comments/default
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
commands dropped  commands  dropped  fnotify  irssi fnotify  irssi  notify send  notify  script  set commands  set  tail  updated  wrote 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Comments on knurd: thl's irssi notification script [UPDATED]

Comments on knurd: thl's irssi notification script [UPDATED]





Updated: 2015-09-08T16:28:28.995+01:00

 



Hi there, I wrote something similar, and it flushe...

2013-10-20T21:15:49.770+01:00

Hi there, I wrote something similar, and it flushes old messages on disconnect.

Have a look:

https://ttboj.wordpress.com/2013/10/18/desktop-notifications-for-irssi-in-screen-through-ssh-in-gnome-terminal/

HTH,
James



Hello, FYI, I wrote in 2010 (and updated lately to...

2013-01-16T01:00:16.544+01:00

Hello, FYI, I wrote in 2010 (and updated lately to version 1.0) a notification over ssh hack you can find over here: Notossh or on my github.

HTH,

--
guyzmo



Hi this post is very old, but perhaps it would hel...

2012-03-20T13:04:00.532+01:00

Hi this post is very old, but perhaps it would help someone:
there are two problems with bash script mentioned above. 1. when the script is interrupted, there are processes (tail -f) staying alive on the remote host. And 2. flushing the fnotify file on exit. This can be done with signal traping. Here's the updated script:

ssh -t user@remotehost "trap 'echo Exit requested.; :> ~/.irssi/fnotify; exit 0' SIGINT SIGTERM SIGKILL; tail -f .irssi/fnotify;" | sed -u 's/[<@&]//g' | while read heading message; do notify-send -i gtk-dialog-info -t 9000 -- "${heading}" "${message}"; done



Ive bee working a bit with this, using the tail me...

2012-02-05T18:18:24.635+01:00

Ive bee working a bit with this, using the tail method as my server is headless (no X)...

Im using xdotool to check if my irssi window is active, the notify happens if not. Also playing a sound.

while read heading message;
do
if [ ! `xdotool search --name zzzAmazon` = `xdotool getactivewindow` ]
then
mplayer /usr/share/sounds/gnome/default/alerts/glass.ogg &
zenity --info --title="${heading}" --text="${message}"
fi
done



good post

2009-01-29T13:34:00.000+01:00

good post



It is missing a ";" just after before the "do" of ...

2008-10-15T20:10:00.000+01:00

It is missing a ";" just after before the "do" of "while..."
Works like a charm, thanks :)



Thanks for your script. Just a little side-note to...

2007-03-25T16:05:00.000+01:00

Thanks for your script. Just a little side-note to your sed-hack: The Desktop Notification Specs allow some markup to be included in the message, so a cleaner solution would be: sed -u "s//\>/g;"
I actually expanded it a little so I can now click URLs and the nicks are printed in bold.



Hi Thorsten,I did a little update of Luke's script...

2007-03-18T16:05:00.000+01:00

Hi Thorsten,

I did a little update of Luke's script as well. Mine doesn't require any tailing of files or other hacks; it calls notify-send and only assumes you have X forwarding on. See http://code.google.com/p/irssi-libnotify/ for the download.



> In the first set of commands, you > dropped the ...

2007-03-17T22:36:00.000+01:00

> In the first set of commands, you
> dropped the 'f' from 'fnotify'.

Fixed

> Running it generates a, "No summary
> specified." output.

Seems notify-send isn't called properly. Put a "echo" in fromt of it to debug.



In the first set of commands, you dropped the 'f' ...

2007-03-15T03:36:00.000+01:00

In the first set of commands, you dropped the 'f' from 'fnotify'. It should read:

/load perl
/script load fnotify

Otherwise, I don't have it working yet. That is, fnotify.pl is putting stuff in ~/.irssi/fnotify just fine, but I haven't been able to get anything meaningful via the local script yet. Running it generates a, "No summary specified." output.