The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Colours in i3bar not showing correctly

asked 2014-12-30 20:25:44 +0000

anonymous user

Anonymous

updated 2014-12-30 23:20:18 +0000

I'm trying to use the solarized colour scheme in my i3 config, but the colours are coming slightly strange, for example the cream colour showing up as grey instead. The colours show up correctly in my terminal though.

I can't figure out what's going on, so could someone point me in the right direction? Thanks!

set $base02           #073642
set $base01           #586e75
set $base00           #657b83
set $base0            #839496
set $base1            #93a1a1
set $base2            #eee8d5
set $base3            #fdf6e3
set $yellow           #b58900
set $orange           #cb4b16
set $red              #dc322f
set $magenta          #d33682
set $violet           #6c71c4
set $blue             #268bd2
set $cyan             #2aa198
set $green            #859900
set $custom           #1c5766

# class                 border   backgr.  text     indicator
client.focused          $green   $green   $base3   $green
client.focused_inactive $base02  $base02  $base2   $violet
client.unfocused        $base02  $base02  $base1   $base01
client.urgent           $magenta $magenta $base3   $red

bar{
  colors {
         # bar colours
         background $base03
         statusline $blue
         separator  $red

         # class            border   backgr.  text
         focused_workspace  $base3   $green   $base3
         active_workspace   $base3   $violet  $base3
         inactive_workspace $base01  $base1   $base03
         urgent_workspace   $magenta $magenta $base3
     }

screenshot: https://i. imgur.com/U5gTueE.png Sorry about the link, I don't have enough karma

EDIT: Solved. Seems to be the colour naming convention, once its changed it works fine.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-02 10:02:25 +0000

joepd gravatar image

The variable mechanism in i3.conf is rudimentary: It can only do one substitution per line. This is why some people have made some theme framework (e.g. i3-style) to work around this limitation.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-12-30 20:25:44 +0000

Seen: 201 times

Last updated: Jan 02