Add discharging character in brainy theme

I have followed the same technique as it is done in atomic theme
pull/1084/head
brossaip 2017-11-06 18:01:30 +01:00 committed by GitHub
parent 5df98aeac9
commit 00732ad210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -164,7 +164,9 @@ ___brainy_prompt_battery() {
color=$bold_red color=$bold_red
fi fi
box="[|]" box="[|]"
ac_adapter_connected && info+="+" ac_adapter_connected && charging="+"
ac_adapter_disconnected && charging="-"
info+=$charging
[ "$info" == "100+" ] && info="AC" [ "$info" == "100+" ] && info="AC"
printf "%s|%s|%s|%s" "${color}" "${info}" "${bold_white}" "${box}" printf "%s|%s|%s|%s" "${color}" "${info}" "${bold_white}" "${box}"
} }