Update atomic.theme.bash

Minor Updates
pull/968/head
Luis Felipe Sánchez 2017-05-26 13:38:22 -05:00 committed by GitHub
parent 8e98790c1d
commit 692c3516d5
1 changed files with 2 additions and 2 deletions

View File

@ -169,11 +169,11 @@ ___atomic_prompt_battery() {
chk=$(isFunction battery_percentage && echo yes || echo no) chk=$(isFunction battery_percentage && echo yes || echo no)
[ "$chk" != "yes" ] || [ "${THEME_SHOW_BATTERY}" != "true" ] && return [ "$chk" != "yes" ] || [ "${THEME_SHOW_BATTERY}" != "true" ] && return
batp=$(battery_percentage) batp=$(battery_percentage)
if [ "$batp" -gt 50 ]; then if [ "$batp" -eq 50 ] && [ "$batp" -gt 50 ]; then
color=$bold_green color=$bold_green
elif [ "$batp" -lt 50 ] && [ "$batp" -gt 25 ]; then elif [ "$batp" -lt 50 ] && [ "$batp" -gt 25 ]; then
color=$bold_yellow color=$bold_yellow
elif [ "$batp" -lt 25 ]; then elif [ "$batp" -eq 25 ] && [ "$batp" -lt 25 ]; then
color=$IRed color=$IRed
fi fi
box="[|]" box="[|]"