Re: [wmii] Mail notification

From: Aaron Grattafiori <Cogitate_AT_sonic.net>
Date: Wed, 20 Jun 2007 08:51:14 -0700 (PDT)

I had a simple script awhile ago that used just bash and fetchmail -c.
Making the box go red is harder because the bottom "status" bar already
has WMII_NORMCOLORS. Mine just blinked "NEW MAIL".

In your wmiirc, you'll find the funtion status():

status() {
        echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date)
}
You can edit that line how you see fit, my laptop has free mem. and batt
left in %, non 24hr time, and a few other things.... Keep in mind that it
runs every second, so you'll want to keep whatever your doing pretty
lightweight. fetchmail -c running every second is a little extreme heh.
You might be able to modify the "Action status" area to work a little
differently, it also could be there is a much better way to do this, if
so, I am also curious.

good luck,
 -Aaron

> I want to implement some kind of mail notifier next to the clock in
> the Wmii bar. Basically an equivalent of Xbiff, cause that doesn't
> work terribly well on wmii due to the whole windowing thing. Just
> something that checks periodically (local mail) and makes a little box
> go red or something when there's new email.
>
> I've been unable to find a huge amount of documentation on this kind
> of thing so hopefully someone can point me in the right direction.
>
> Thanks!
>
> A
>
> --
> Adam Gray
> "Life + self-doubt = peace"
> -- Jan Buttinger
>
>
Received on Wed Jun 20 2007 - 17:51:16 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:25:11 UTC