Add discharging character in brainy theme

I have followed the same technique as it is done in atomic theme
This commit is contained in:
brossaip
2017-11-06 18:01:30 +01:00
committed by GitHub
parent 5df98aeac9
commit 00732ad210

View File

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