doesn't look like xsetroot would get the string as a single parameter,
it needs to be quoted. pretend like the backtick just gets replaced
with the text inside it and you'll see:
> xsetroot -name `{echo test test}
= xsetroot -name test test
> xsetroot -name `{echo 'test test'}
= xsetroot -name test test
> xsetroot -name (`{echo test test})
= xsetroot -name (test test)
try giving echo some quotes to print:
xsetroot -name `{echo '"test test"'}
= xsetroot -name "test test"
I dont know much about rc, but this would be how it works in the shell
at least....
Jeremy
On Mon 15 Dec 2008 - 10:14PM, Michael Brown wrote:
> These work:
> xsetroot -name test
> xsetroot -name `{echo test}
>
> These don't:
> xsetroot -name `{date}
>
> Seems the problem has something to do with xsetroot's whitespace handling...
>
> Mike
>
> On Mon, Dec 15, 2008 at 3:15 AM, Anselm R Garbe <garbeam_AT_gmail.com> wrote:
> > 2008/12/14 Michael Brown <ebebe33_AT_gmail.com>:
> >> Maybe a silly question, but is any p9p user out there able to set the
> >> statusbar text with xsetroot using rc(1)?
> >
> > Did you check if
> >
> > xsetroot -name foobar
> >
> > works at all? If not something might be wrong with the DISPLAY variable.
> >
> >> The following don't seem to work:
> >> xsetroot -name `{SCRIPT}
> >> xsetroot -name "`{SCRIPT}"
> >> xsetroot -name "(`{SCRIPT})"
> >
> > The first one is correct. Try something like
> >
> > xsetroot -name `{date}^" "^`{uptime}
> >
> > for example.
> >
> > Kind regards,
> > --Anselm
> >
> >
>
Received on Tue Dec 16 2008 - 03:42:11 UTC
This archive was generated by hypermail 2.2.0 : Tue Dec 16 2008 - 03:48:04 UTC