Re: [dwm] Stats script

From: <stanio_AT_cs.tu-berlin.de>
Date: Sat, 9 May 2009 11:49:53 +0200

* Jake Todd <jaketodd422_AT_gmail.com> [2009-05-03 05:31]:
> What are you guys using?

I use

in .Xsession

        while true ; do
                xsetroot -name "`${HOME}/.status`";
                sleep 4;
        done &

and here is .status

cat .status |~
#!/bin/sh
        sswriter \
        -w 10 \
        -f /home/stanio/.current_song /home/stanio/.recent_events \
        -a 20 25 \
        -t THRM \
        -D eth0 eth2 \
        -d "%Y-%m-%d %a %H:%M'%S" \
        -s PCM Master Mic \
        "%[ | %f0%] %[ | %f1%] |%(B* WARNING * BATTERY *%)%(b%v1%V1 %v2%V2| %d| %m %sMB| %n%(w %q%%%) %i:%o kB| %C0MHz %p0%%| %b0%%| %t0C%)"

Sswriter is pretty powerful c program posted perhaps more than year
ago on the wmii mailing list, as I was still half wmii user. I use a
patched 0.3.1 version.

sample output of ./.status is:
 song | event |81on 80off| 2009-05-09 Sat 11:44'18| 278 0MB| eth0 0.0:0.0 kB| 798MHz 46%| 100%| 53C

which translates to

 song|event|volume of headphones and micropone|date|memory+swap|link|cpu|battery|temp

For those interested:

http://www.mail-archive.com/wmii@suckless.org/msg01935.html

I noticed I very rarely look at most of the stuff in this status bar thoug,
so I am thinking of 2 staged status query -- e.g. date/time and temp in the
dwm status bar; The rest can be queried 'on demand' in the console.

-- 
 cheers
 stanio_
Received on Sat May 09 2009 - 09:49:53 UTC

This archive was generated by hypermail 2.2.0 : Sat May 09 2009 - 10:00:09 UTC