Re: [wmii] A tool for wmii: SSWriter

From: Aaron Grattafiori <>
Date: Tue, 22 Jan 2008 14:05:31 -0800 (PST)

> Le Tue, 22 Jan 2008 16:01:38 -0500,
> Kris Maglione <> a écrit :
>> On Tue, Jan 22, 2008 at 09:32:50PM +0100, Sky wrote:
>> >I've wrote a little application in C for the status bar. It's mostly
>> for my
>> >needs but it can be interest some of you. Additionally it's really
>> faster
>> >than a bash script.
>> Hi,
>> We don't use the b word around here. Anyway, in what way is it
>> faster than a script? In terms of writing it, or execution? I
>> don't care much about execution time when it comes to status
>> bars, but I'm a bit annoyed by the amount of cpu time my cpu/io
>> bar eats. Anyway, it's not to my taste, but I'm sure others will
>> find it useful.
> Yes in terms of execution. And I was a bit annoyed by seeing my seconds
> pass three by three.
> But if we care about the speed aspect, it can be useful for those who
> don't
> want to write a script like it (in bash or other...) themselves ;)
I've never seen my clock lag.
I think you had too many things all included in your single status line.
I have several things down in my rbar that all update at different
intervals. Using stuff like the following in my wmiirc.

h_weather() { here_is_the_code; }

Action h_weather
     set +xv
     if wmiir remove /rbar/h_weather 2>/dev/null; then
          sleep 2
     echo "$WMII_NORMCOLORS" | wmiir create /rbar/h_weather
     while h_weather | wmiir write /rbar/h_weather; do
          sleep 600

This also allows me to blink different colors on my rbar when my battery
is low or wifi signal strenth is low by changing $WMII_NORMCOLORS to
something else.

Your tool is pretty cool though.


Received on Tue Jan 22 2008 - 23:05:34 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:34:30 UTC