Re: [wmii] 20071003 snapshot config question

From: sqweek <sqweek_AT_gmail.com>
Date: Mon, 8 Oct 2007 13:45:50 +0800

On 10/8/07, Dewey Hylton <dewey-wmii_AT_hyltown.com> wrote:
> i'm still trying to port my settings from 3.1; i have only two outstanding
> issues. any help would be greatly appreciated; so far banging my head has only
> broadened the bruise ...
>
> 1) WMII_TERM=x-terminal-emulator
>
> i *really want to change this ... what follows is what fails to work for me -
> you should be able to decipher what i'm actually trying to achieve:
>
> WMII_TERM="xterm -bg black -fg white -ls -vb -sb -rightbar -s -sl 1000 -fn fixed
> -fb fixed"
>
> i've tried different quoting methods (and none at all) to no avail. what
> braindead thing am i doing wrong?

 I'm assuming based on what you have below that you're using rc.wmii,
in which case your syntax is bogus. In rc, WMII_TERM="xterm -bg black
..." defines a list with a single element, $WMII_TERM expands to a
single argument (rc wordsplits on list elements not whitespace).
 You want:
WMII_TERM=(xterm -bg black -fg white -etc -etc)

> 2) fn status { echo -n `{uptime | sed 's/.*://; s/,//g'} '|' `{date} }
>
> same idea as #1; if you spot the stupidity, please let me know how to correct it:
>
> fn status {
> load=`uptime | sed 's/.*://; s/,//g'`
> export=`df -h /export|awk 'END {print "Export: "$3"/"$1"/"$4}'`
> root=`df -h /|awk 'END {print "Root: "$3"/"$1"/"$4}'`
> status="`date` || `acpi` || $root || $export ||$load"
> echo -n $status
> }
>
> this particular item prevents wmii from starting correctly (well, it starts but
> i have no hotkeys or anything else - no method of starting apps).

 Syntax again. Replace `foo` with `{foo}. Also, " doesn't quote in rc
so you'll need to use something more like status=`{date}' || '`{acpi}'
|| '$root. HTH.
-sqweek
Received on Mon Oct 08 2007 - 07:45:52 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:29:08 UTC