summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rwxr-xr-xinternal/p10k.zsh7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index e409c36c..96bee0bf 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -922,7 +922,12 @@ prompt_battery() {
case "${${(s:; :)raw_data}[2]}" in
'charging'|'finishing charge'|'AC attached')
- state=CHARGING
+ if (( bat_percent == 100 )); then
+ state=CHARGED
+ remain=''
+ else
+ state=CHARGING
+ fi
;;
'discharging')
(( bat_percent < _POWERLEVEL9K_BATTERY_LOW_THRESHOLD )) && state=LOW || state=DISCONNECTED