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
This commit is contained in:
Tim Otlik 2018-05-09 10:21:13 +02:00
parent 642034eef2
commit 238b231c3e
No known key found for this signature in database
GPG key ID: 64694C30F7E8E0D3

View file

@ -488,7 +488,7 @@ prompt_battery() {
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
fi