addy-dclxvi / i3-starterpack

A simple guide (and example of configuration) about how to install i3 & its and essentials packages, then make them look eye candy, also contains my dotfiles of Debian 12 (Bookworm) setup
1.48k stars 172 forks source link

How can i set background for element language layout (its not visible with yours settings) #20

Open HappyCthulhu opened 3 years ago

HappyCthulhu commented 3 years ago

Language layout is not visible with your i3status settings

I can:

  1. change color of all status text elements and background. I dont want to do it, because your colors is fine, i cant do it better
  2. set background color for layout. But how can i set background for element, that controls by _change_layouts script?

config:

# Start i3bar to display a workspace bar (plus the system information i3status
bar {
    status_command i3status --config $HOME/.config/i3/i3status.conf  | /bin/_change_layouts

    # status_command /bin/_change_layouts
    position top

    colors {
    background #2f343f
    # statusline старого цвета. Нужно заменить, когда цвет шрифта i3status изменю
    statusline #2f343f
    separator #4b5262

    # colour of border, background, and text
    focused_workspace   #2f343f #bf616a #d8dee8
    active_workspace    #2f343f #2f343f #d8dee8
    inactive_workspace  #2f343f #2f343f #d8dee8
    urgent_workspace    #2f343f #ebcb8b #2f343f
    }

}

script /bin/_change_layouts:

#!/bin/env bash

set -e

while :
do
    read line
    block="{\"full_text\":\"$(xkb-switch)\"}"
    echo "${line/\[\{/\[$block,\{}" || exit 1
done