Skip to content

Commit

Permalink
Merge pull request #280 from mamantoha/battery-indication
Browse files Browse the repository at this point in the history
better battery indication for charging from AC
  • Loading branch information
ethancedwards8 authored Aug 22, 2024
2 parents b59724e + 19aa77a commit 71f1ce6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions scripts/battery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,17 @@ battery_status()
charging|Charging)
# charging from AC
declare -A battery_labels=(
[0]="ξ€Šσ°‚Ž"
[10]="ξ€Šσ°Ί"
[20]="ξ€Šσ°»"
[30]="ξ€Šσ°Ό"
[40]="ξ€Šσ°½"
[50]="ξ€Šσ°Ύ"
[60]="ξ€Šσ°Ώ"
[70]="ξ€Šσ°‚€"
[80]="ξ€Šσ°‚"
[90]="ξ€Šσ°‚‚"
[100]="ξ€Šσ°Ή"
[0]="󰒟"
[10]="󰒜"
[20]="󰂆"
[30]="󰂇"
[40]="σ°‚ˆ"
[50]="󰒝"
[60]="󰂉"
[70]="󰒞"
[80]="σ°‚Š"
[90]="σ°‚‹"
[100]="σ°‚…"
)
echo "${battery_labels[$((bat_perc/10*10))]:-󰂃}"
;;
Expand All @@ -131,7 +131,7 @@ battery_status()
echo 'ξ€Š'
;;
finishingcharge)
echo 'ξ€Šσ°Ή'
echo 'σ°‚…'
;;
*)
# something wrong...
Expand Down

0 comments on commit 71f1ce6

Please sign in to comment.