Unverified Commit c511bcbc authored by Rashil Gandhi's avatar Rashil Gandhi Committed by GitHub

Display charging status in Windows (#1575)

parent 075eb43d
...@@ -3686,6 +3686,9 @@ get_battery() { ...@@ -3686,6 +3686,9 @@ get_battery() {
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)" battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)"
battery="${battery/EstimatedChargeRemaining}" battery="${battery/EstimatedChargeRemaining}"
battery="$(trim "$battery")%" battery="$(trim "$battery")%"
state="$(wmic /NameSpace:'\\root\WMI' Path BatteryStatus get Charging)"
state="${state/Charging}"
[[ "$state" == *TRUE* ]] && battery_state="charging"
;; ;;
"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