Re: [dwm] program notification

From: lobzang <lobzang_AT_free.fr>
Date: Mon, 05 Feb 2007 13:38:41 +0100

Hi,

I use centericq , and wrote a small script that writes conversation in
the statusbar when someone talke to me. Basically I use xwininfo to see
if there is any action in my window, and if this is the case , I just
parse the logs.

#!/bin/bash
icqinfo=$(xwininfo -root -children -events | grep "event from" )
[ $? -gt 0 ] && return
icqaccount=$(echo $icqinfo| awk ' {printf
substr($5,2,1)substr($6,1,length($6)-2) } ')
message=$(tail -1 ~/.centericq/$icqaccount/history)
printf "{{{ $icqaccount : $message }}} -"

However I think it could be a good idea to add color (like for exemple
changing the workspace number background to red when there is an event
on a windowid in that workspace.
That way , if workspace number 2 becomes red, I know I need to switch to
workspace 2 to see what event is pending...

Regards,
Lobzang.

On Mon, 2007-02-05 at 12:13 +0000, rumpel wrote:

> Tell me more, so maybe i can attempt to create something for gaim-text.
>
>
Received on Mon Feb 05 2007 - 13:38:42 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:35:52 UTC