Try

text=`{date}^" "^`{uptime}
xsetroot -name $"text

Kind regards,
Anselm

2008/12/16 Michael Brown <[email protected]>:
> These work:
> xsetroot -name test
> xsetroot -name `{echo test}
>
> These don't:
> xsetroot -name `{date}
> xsetroot -name `{echo test test}
> xsetroot -name `{echo 'test test'}
> xsetroot -name (`{echo test test})
>
> 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 <[email protected]> wrote:
>> 2008/12/14 Michael Brown <[email protected]>:
>>> 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

Reply via email to