mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +00:00
Merge pull request #899 from matoro/master
battery: fix battery detection on Windows
This commit is contained in:
2
neofetch
2
neofetch
@@ -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="%"
|
batttery="$(trim "$battery")%"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Haiku")
|
"Haiku")
|
||||||
|
|||||||
Reference in New Issue
Block a user