Skip to content

Commit a03c2f0

Browse files
adding new battery status "Not charging" and documentation on the nerdfont icons
1 parent 15c3699 commit a03c2f0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/CONFIG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,14 @@ which will display the battery charge and whether its charging (or just drawing
188188
set -g @dracula-battery-label false
189189
set -g @dracula-show-battery-status true
190190
```
191+
these settings will introduce the following icons:
192+
- the battery is discharging and at the current level: 󰂎 󰁺 󰁻 󰁼 󰁽 󰁾 󰁿 󰂀 󰂁 󰂂 󰁹
193+
- the battery is charging and at the current level: 󰢟 󰢜 󰂆 󰂇 󰂈 󰢝 󰂉 󰢞 󰂊 󰂋 󰂅
194+
- power is being drawn from AC, but the battery is neither charging nor discharging: 
195+
- we were able to determine that the battery is charging/ discharging, but something about the percentage went wrong: 󰂃
196+
- we don't know the status of the battery: 
197+
198+
191199

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

scripts/battery.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ battery_status()
126126
)
127127
echo "${battery_labels[$((bat_perc/10*10))]:-󰂃}"
128128
;;
129-
ACattached)
129+
"ACattached"|"Not charging")
130130
# drawing from AC but not charging
131131
echo ''
132132
;;

0 commit comments

Comments
 (0)