mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-19 18:37:12 +00:00
Fixed doubled battery usage Windows
This commit is contained in:
4
fetch
4
fetch
@@ -1242,8 +1242,8 @@ getbattery () {
|
|||||||
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining /value)"
|
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining /value)"
|
||||||
battery=${battery/EstimatedChargeRemaining'='}
|
battery=${battery/EstimatedChargeRemaining'='}
|
||||||
battery=${battery//[[:space:]]/ }
|
battery=${battery//[[:space:]]/ }
|
||||||
battery=${battery// }
|
battery=${battery// }
|
||||||
battery+="${battery}%"
|
battery+="%"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user