From 735363e7a02b347e5c48977faae7e308b51ec9c5 Mon Sep 17 00:00:00 2001 From: vdbe <44153531+vdbe@users.noreply.github.com> Date: Mon, 15 Jul 2024 22:35:02 +0000 Subject: [PATCH] fix: status module trailing space transparancy (#250) --- builder/module_builder.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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