Re: [dwm] irssi/mutt in status bar

From: Capit Nicolas <capitn_AT_free.fr>
Date: Wed, 10 Jan 2007 10:39:32 +0100

Hello,

for my purpose I wrote a perl script (instead of a shell script with a lot of
fork...). This script is hard coded for my needs but if you are interested I
attach it.
This script displays : cpu %, network rate, temperature, cpufreq governor,
processor Mhz and date.

It also reads from its standard input and when something arrive it displays this
one instead of the default values...
(I use this to display some notifications like sound volume value)

So in my .xinitrc, I have:

#################################################
export DWM_PIPE="/tmp/dwm_$DISPLAY"
mkfifo $DWM_PIPE
while true
do
    cat $DWM_PIPE
done | dwm_status_bar.pl | /usr/local/bin/dwm
#################################################

So when something is written into $DWM_PIPE then it is displayed into the
statusbar...

in a shell, you can test:

#################################################
echo test > $DWM_PIPE
#################################################

If it can help you...

Michael Muster wrote:
> Hi there,
>
> How can i achive to have some notification in my status bar displaying
> for example if new messages have arrived in mutt/irssi?
> I've search the list, there was one similar topic, but without any
> fitting solution for my request.
>
> I know i can display my netstate or cpufreq while using the command
> ifconfig and then "sed" the necessary things out, but for this topic
> i have no idea how this could be done.
>
> Naturally i have my browser in the first tag, and irssi/mutt in the
> second.
> So while i'm on the first tag it would be nice to know whats going on
> over there, a small number or something would be enough, so i can
> switch over if something new have arrived.
>
> How do you manage this?
> Or have all of you such bis 23'' Displays that you can display your
> irc on every tag? ;-)
>
> Regards,
> Michael

Received on Wed Jan 10 2007 - 10:39:57 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:34:31 UTC