rename variable to POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD

Variable now holds an integer, if your battery status is greater or equal to this integer the
segment will be hidden
pull/22/head
Tim Otlik 7 years ago
parent 642034eef2
commit 238b231c3e
No known key found for this signature in database
GPG Key ID: 64694C30F7E8E0D3

@ -488,7 +488,7 @@ prompt_battery() {
fi fi
fi fi
if [[ "${POWERLEVEL9K_BATTERY_HIDE_FULL}" == "true" && "${bat_percent}" = 100 ]]; then if [[ -v "POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD" && "${bat_percent}" -ge $POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD ]]; then
return return
fi fi

Loading…
Cancel
Save