Re: [dwm] xsetroot/status scripting using rc shell?

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Tue, 16 Dec 2008 08:09:48 +0000

Try

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

Kind regards,
Anselm

2008/12/16 Michael Brown <ebebe33_AT_gmail.com>:
> 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 <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 - 08:09:48 UTC

This archive was generated by hypermail 2.2.0 : Tue Dec 16 2008 - 08:12:04 UTC