Skip to content

new battery status "Not charging" and nerdfont docs #347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@ which will display the battery charge and whether its charging (or just drawing
set -g @dracula-battery-label false
set -g @dracula-show-battery-status true
```
these settings will introduce the following icons:
- the battery is discharging and at the current level: `󰂎` `󰁺` `󰁻` `󰁼` `󰁽` `󰁾` `󰁿` `󰂀` `󰂁` `󰂂` `󰁹`
- the battery is charging and at the current level: `󰢟` `󰢜` `󰂆` `󰂇` `󰂈` `󰢝` `󰂉` `󰢞` `󰂊` `󰂋` `󰂅`
- power is being drawn from AC, but the battery is neither charging nor discharging: ``
- we were able to determine that the battery is charging/ discharging, but something about the percentage went wrong: `󰂃`
- we don't know the status of the battery: ``



if you have no battery and would like the widget to hide in that case, set the following:

Expand Down
5 changes: 4 additions & 1 deletion scripts/battery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,11 @@ battery_status()
)
echo "${battery_labels[$((bat_perc/10*10))]:-󰂃}"
;;
ACattached)
ACattached|Notcharging|"Not charging")
# drawing from AC but not charging
# ACattached - MacOS
# Not charging - Linux without acpi
# Notcharging - Linux with acpi
echo ''
;;
finishingcharge)
Expand Down