diff --git a/fetch b/fetch index 49964d37..a5606787 100755 --- a/fetch +++ b/fetch @@ -1250,11 +1250,11 @@ getbattery () { ;; "Windows") - battery="$(wmic Path Win32_Battery)" + battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining /value)" battery=${battery/EstimatedChargeRemaining'='} battery=${battery//[[:space:]]/ } battery=${battery// } - battery+="%" + battery+="${battery}%" ;; esac }