Merge pull request #1084 from brossaip/patch-1

Add discharging character in brainy theme
pull/1088/head
Nils Winkler 2017-11-07 08:12:47 +01:00 committed by GitHub
commit efe2ed9ab4
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}"
} }