Re: [wmii] statusbar - issue with date

2009-03-29 Thread Julien Pecqueur (JPEC)
Thank you Juan !

it works well with /bin/date...

it try to install the last hg version with an AUR package for Archlinux
but it doesn't work. I'll go deeper on the PKGBUILD later.

-- 
Julien Pecqueur

[email protected]
http://julienpecqueur.com

Powered by Archlinux - Keep it simple, stupid !



Re: [wmii] statusbar - issue with date

2009-03-29 Thread Juan Pablo Aroztegi
> I live in France and we have 2 times (winter - CET and Summer - CEST).
> The status doesn't display correctly CEST time
Hi. You are using rc.wmii, so the "date" command the script is using
is p9p's and not the one in /bin/date. The "+%" options are not valid
to format p9p's date. There was an issue in p9p that prevented "date"
from displaying 4 character timezones, but this was fixed [1]. So you
probably need to update your p9p installation or specify /bin/date
explicitly in the commands.


Juan Pablo

[1] http://hg.pdos.csail.mit.edu/hg/plan9/rev/724a368e7ef2



[wmii] statusbar - issue with date

2009-03-29 Thread Julien Pecqueur (JPEC)
Hi,

I use a personalized rc.wmii.local file with success since 2-3 months
but today I meet an issue with the date :

* My statusbar in rc.wmii.local: *

# Display Wifi ESSID & Quality, CPU Preset, Temperature, Battery
Capacity and Date
fn status {
echo -n \
'Cpu:' `{cpufreq-info -f | sed 's/000//;'} 'MHz' '|' \
'Temp:' `{cat /proc/acpi/thermal_zone/THRM/temperature | grep
'temperature' | sed 's/.*://;'} '|' \
'Bat:' `{cat /proc/acpi/battery/BAT1/state | grep remaining | 
sed
's/.*://;' | sed 's/mAh*//;'} '/' `{cat /proc/acpi/battery/BAT1/info |
grep 'design capacity:' | sed 's/.*://;'} '|' \
'Wifi:' `{iwconfig wlan0 | grep 'ESSID:' | sed 's/.*://;'} 
`{iwconfig
wlan0 | grep Quality | sed 's/.*y=//;' | sed 's/.100.*//;'} '% |' \
`{date +"%a %d/%m %k:%M"}
}

* The issue : *
http://depot.julienpecqueur.com/wmii_date.png

I live in France and we have 2 times (winter - CET and Summer - CEST).
The status doesn't display correctly CEST time (take a look at the
picture linked here : http://depot.julienpecqueur.com/wmii_date.png).

Wmii display "???" instead of "CEST".

I try to format the date to display only the timestamp : "date +"%a
%d/%m %k:%M"" but wmii still display : "Sun Mar 29 20:01:36 ??? 2009"

Anybody have an idea ?

-- 
Julien Pecqueur

[email protected]
http://julienpecqueur.com

Powered by Archlinux - Keep it simple, stupid !