You are not logged in.

#1 2012-03-02 10:50:38

dlind
Member
Registered: 2010-07-27
Posts: 18

Awesome, screen, irssi and notifications

Hi,

Has anyone ever configured awesome to post notifications with naughty when something happends on an irssi running in screen? I cannot wrap my head around how to do this, obviously you have to enable urgentonbell .. for urxvt in .Xdefaults, but how can you make naughty engage on this?

Any pointers appreciated.

Best regards,

David Lind

Offline

#2 2012-03-03 18:02:10

greyscale
Member
From: Sweden
Registered: 2011-01-02
Posts: 59

Re: Awesome, screen, irssi and notifications

Hi.
I haven't done what your trying to do so this is just kind of guessing or how to say...

Awesome marks the tag where a client sends a urgent-bell so I'm guessing that it is possible to write a rule that looks
for a urgent-bell and then check the clients name and if it matches irssi it goes ahead and sends a notify.

Doing:

grep urgent /usr/share/awesome/lib/awful/*.lua

might give you a start on where to look to see how that is done.

But you won't get any detailed info from the bell that irssi send (to my knowing at least) on why it sent it.

Think a better way to go would be to add a script to irssi that sends the notification directly instead of using a urgent-bell.
This way you can send whatever text you like along, informing if it was a priv msg, highlight etc...

And then there is irssi-libnotify http://code.google.com/p/irssi-libnotify/ that might just be what you need..


A tiling window manager simply manages your windows, not just letting you have em
:: Configs etc @GitHub

Offline

#3 2014-01-13 19:17:30

nailhead
Member
Registered: 2014-01-13
Posts: 1

Re: Awesome, screen, irssi and notifications

You could make irssi make a log file and make a lil script to scan for changes on the log. When the log changes you can use naughty.notify trough awesome client to show a popup notification with the message. One think to note is that you can't use libraries trough awesome-client if they are not made public in rc.lua or otherwise imported to use.

I know this is an old thread but if you are still looking for a solution this would be one.

Offline

Board footer

Powered by FluxBB