Skip to content

Commit

Permalink
Don't add icon separator if there is no icon for a status module (#265)
Browse files Browse the repository at this point in the history
Implemented with advice of @vdbe

Co-authored-by: Aleksandr Jakusev <no@email.com>
  • Loading branch information
j-xella and Aleksandr Jakusev committed Aug 9, 2024
1 parent e2a1043 commit df23892
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builder/module_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,9 @@ build_status_module() {
local show_left_separator="#[fg=$color,bg=default,nobold,nounderscore,noitalics]$status_left_separator"
fi

if [ -z "$icon" ] ; then
show_icon=""
fi

echo "$show_left_separator$show_icon$show_text$show_right_separator"
}

0 comments on commit df23892

Please sign in to comment.