[wmii] formatting date in bar

From: John Magolske <listmail_AT_b79.net>
Date: Mon, 20 Feb 2006 01:08:42 -0800


I'd like to adjust text in the bar, removing "uptime" and setting date & time
to be like so: 2006/02/20 Mon 0:36 PST

Looking in /usr/local/etc/wmii-2.5/status :

   fn statustext {
       # if you need a formatted date, use awk
       echo (`{date} `{uptime | sed 's/.*://; s/,//g'})

and changing a line to:

   echo (`{date +%Y/%m/%d\ %a\ %k:%M\ %Z})

didn't work, still getting the default format: Mon Feb 20 00:37:07 PST 2006
...and I'm not sure exactly how to use awk here.

Also, the configuration notes mention that to customize wmibar, one should
copy CONFPREFIX/wmii/bar to ~/.wmii and edit the copy, but I can't seem to
find a the file "bar".

This is a newbie running wmii-2.5.2 on OS X 3.4.9.

Any suggestions much appreciated,

Received on Mon Feb 20 2006 - 10:14:46 UTC

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