diff --git a/builder/module_builder.sh b/builder/module_builder.sh index cfb9097..ff1408f 100644 --- a/builder/module_builder.sh +++ b/builder/module_builder.sh @@ -7,18 +7,18 @@ build_status_module() { local text="$4" if [ "$status_fill" = "icon" ]; then + local bg local show_icon="#[fg=$thm_bg,bg=$color,nobold,nounderscore,noitalics]$icon " - local show_text="#[fg=$thm_fg,bg=$thm_gray] $text" if [ "$status_connect_separator" = "yes" ]; then - local show_left_separator="#[fg=$color,bg=$thm_gray,nobold,nounderscore,noitalics]$status_left_separator" - local show_right_separator="#[fg=$thm_gray,bg=$thm_gray,nobold,nounderscore,noitalics]$status_right_separator" - + bg="$thm_gray" else - local show_left_separator="#[fg=$color,bg=default,nobold,nounderscore,noitalics]$status_left_separator" - local show_right_separator="#[fg=$thm_gray,bg=default,nobold,nounderscore,noitalics]$status_right_separator" + bg="default" fi + local show_text="#[fg=$thm_fg,bg=$bg] $text" + local show_left_separator="#[fg=$color,bg=$bg,nobold,nounderscore,noitalics]$status_left_separator" + local show_right_separator="#[fg=$thm_gray,bg=$bg,nobold,nounderscore,noitalics]$status_right_separator" fi if [ "$status_fill" = "all" ]; then