Fixed background color on prefix indicator segment

This commit is contained in:
2023-03-27 16:44:07 +02:00
parent 74f7e49a25
commit d745dcb48c
3 changed files with 22 additions and 11 deletions

View File

@@ -9,23 +9,24 @@ normal='●'
prefix='▲'
if [ $1 -eq 1 ]; then
fore=$cnormal
back=$bnormal
sym=$normal
text="#S"
else
fore=$cprefix
back=$bprefix
sym=$prefix
text="#[bold]⌥#[unbold]"
else
fore=$cnormal
back=$bnormal
sym=$normal
text="#S"
fi
if [ $(($(date +%s) % 2)) -eq 0 ]; then
printf "#[fg=$back,bg=$back] $sym #[fg=$fore]$text "
printf "#[fg=$fore,bg=$back] $sym #[fg=$fore]$text #[fg=$back]"
else
printf "#[fg=$fore,bg=$back] $sym #[fg=$fore]$text "
printf "#[fg=$back,bg=$back] $sym #[fg=$fore]$text #[fg=$back]"
fi
#printf "#[fg=white,bg=red] $(date +%N) $@"
printf "#[fg=white]"
#printf "#[fg=white]"