Re: [dev] coloring in the status bar

From: gnuisancev3 <gnuisancev3_AT_archlinux.us>
Date: Mon, 31 Aug 2009 16:02:27 -0400

I'm a bit lost, I read section 6 of the wmii manual:
http://code.suckless.org/contrib/guide/wmii-3/guide-en/guide_en and
am still a bit lost.

my ~/.wmii-3.5/wmiirc has the following in it

status() {
        echo -n Unread: $(~/bin/get_gmail) '|' Now Playing:
$(~/bin/mpd_nowplaying.sh) '|' IP: $(~/bin/get_ip) '|' $(date +"%a
%b. %e %Y | %l:%M:%S %p")
 }

All I want to color is the text for the text "Unread:", "Now
Playing:", etc. But it seems not to accept bash color codes.

Doing a wmiir create /rbar/foo #000000 #ffffff #aaaaaa Foo doesn't
really do anything, it just hangs there and I have the C-c to cancel
the operation and I'm kinda confused about how this works in
conjunction with wmiirc to begin with.

Sorry if i'm being a pita.

On Mon, Aug 31, 2009 at 6:26 AM, Aurélien Aptel<aurelien.aptel_AT_gmail.com> wrote:
> Create a bar with its own colours (see Kris' message) for each status
> info you want.
>
> On Sun, Aug 30, 2009 at 10:04 PM, Kris Maglione<maglione.k_AT_gmail.com> wrote:
>> On Sun, Aug 30, 2009 at 01:02:08PM -0400, gnuisancev3 wrote:
>>>
>>> is there a way to format text by coloring it in the ~/wmii-3.5/wmiirc
>>> file.  I have a good deal of info in my statusbar (mpd info, # of
>>> unread emails, disk usage, RAM/swap info, etc..) and would like to
>>> make it a bit more legible but I can't seem to find anything on how to
>>> go about doing this.
>>>
>>> any help would be appreicated greatly.
>>
>> See doc/wmii.pdf. Basically, though, try:
>>
>>    wmiir create /rbar/foo #000000 #ffffff #aaaaaa Foo
>>
>> --
>> Kris Maglione
>>
>> When a religion is good, I conceive it will support itself; and when
>> it does not support itself, and God does not take care to support it
>> so that its professors are obliged to call for help of the civil
>> power, 'tis a sign, I apprehend, of its being a bad one.
>>        --Benjamin Franklin
>>
>>
>>
>
>
Received on Mon Aug 31 2009 - 20:02:27 UTC

This archive was generated by hypermail 2.2.0 : Mon Aug 31 2009 - 20:12:03 UTC