[wmii] status.sh doesn't work

From: Ivan F. Villanueva B. <wmii_AT_artificialidea.com>
Date: Sun, 5 Mar 2006 09:44:31 +0100

Hi,

On Thu, Mar 02, 2006 01:19:43AM +0100, David Guibert wrote:
> to conclude, add the following in status.sh file
>
> bat=`acpi | awk '{print $4}' | sed 's/,//'`
> xwrite /bar/$n/data `date` `uptime | sed 's/.*://; s/,//g'` \
> `echo "$bat"`
>
> hope helpfull

I have created a file in .wmii-2.5 with the name "status",
which is executable:
    
    #!/usr/local/9/bin/rc

    cpu=`cpufreq-info -fm`
    xwrite /bar/$1/date `echo "$cpu"`

And the two relevant lines of my wmiirc are:
    slab=`{wmiir read /bar/new}
    status $slab &

However, nothing is displayed on the right side of the bar. What am I doing
wrong ?

BTW. The 3 numbers of the right side of the default bar show the load average,
but I don't know what they mean.

-- 
Ivan F. Villanueva B.
artificialidea.com
<<<                   European Community Patent will bring            >>>
<<<                     Software patents by the backdoor              >>>
<<<                      http://wiki.ffii.org/ComPatEn                >>>
Received on Sun Mar 05 2006 - 09:44:34 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:00:43 UTC