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 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
1 changed files with 1 additions and 1 deletions

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