Unverified Commit 33fce465 authored by matoro's avatar matoro Committed by GitHub

fix battery detection on Windows

parent 59c0d736
...@@ -2261,7 +2261,7 @@ get_battery() { ...@@ -2261,7 +2261,7 @@ get_battery() {
"Windows") "Windows")
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)" battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)"
battery="${battery/EstimatedChargeRemaining}" battery="${battery/EstimatedChargeRemaining}"
[[ "$(trim "$battery")" ]] && battery="%" [[ "$(trim "$battery")" ]] && battery="$(trim "$battery")%"
;; ;;
"Haiku") "Haiku")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment