You are not logged in.

#1 2019-03-16 20:12:06

maju
Member
Registered: 2017-08-31
Posts: 2

[SOLVED] status bar colors in i3

Hello everyone,

I've switched from xfce to i3 a few weeks ago so I'm still new to it and trying to understand how to fully configure it.
I'm encountering a problem with i3bar : depending on my configuration I can have either the clock showing, but only the default i3bar colors, or my custom colors, but without the clock. My goal is to get both the clock and the custom colors at the same time.

As I've seen on the wiki and in the i3 user guide, a rather classic configuration for the bar would be like :

bar {
    
    status_command    i3status
   
    colors {
        background #000000
        statusline #ffffff

        focused_workspace  #ffffff #285577
        active_workspace   #ffffff #333333
        inactive_workspace #888888 #222222
        urgent_workspace   #ffffff #900000
    }
}

Here's my config files

My /etc/i3status.conf 

order += "tztime local"

tztime local {
        format = "  %d %b %Y -  %H:%M "
}

So it contains only a clock that's supposed to appear at the right end of the i3bar.

But now, when I tried to customize the color scheme in my i3 config, it stops showing : I have the right colors, but not the clock anymore. As stated earlier, its either one depending on the configuration, but not both at the same time.

Here's my /home/user/.config/i3/config relating to the colors and the bar

# theme colors
set $bg-color            #ffbf00
set $inactive-bg-color   #333333

# set window colors
# class                 border              background         text                 indicator
client.focused          $bg-color           $bg-color          $white               $bg-color
client.unfocused        $inactive-bg-color  $inactive-bg-color $inactive-text-color $bg-color


bar {
        status_command i3status

colors {
    background #000000
    statusline #000000
    focused_workspace #000000 $bg-color #000000
    active_workspace #000000 $bg-color #$bg-color
    inactive_workspace #000000 #666666 #ffffff
    urgent_workspace #d33682 #d33682 #fdf6e3
    }
}

Since the clock is not showing, it seems like i3 is reading the "color part" of the config file, but ignoring the i3status file.
If I comment the "color  {" lines, then I get to see the clock again, but obviously I don't get the custom colors.

I'm certainly missing something here, and I'd be glad if someone could point to the mistake I'm making.

Thanx in advance,

maju

Last edited by maju (2019-03-18 06:52:52)

Offline

#2 2019-03-18 04:35:32

gnox
Member
Registered: 2013-05-18
Posts: 81

Re: [SOLVED] status bar colors in i3

Because the text color (statusline) is the same as the background color, change :

statusline #000000

to

statusline  #eff0f1

Offline

#3 2019-03-18 06:51:24

maju
Member
Registered: 2017-08-31
Posts: 2

Re: [SOLVED] status bar colors in i3

Thanks a lot !! smile
I was definitely missing something...

maju

Offline

Board footer

Powered by FluxBB