diff --git a/neofetch b/neofetch index 9b6add40..09b9fdf0 100755 --- a/neofetch +++ b/neofetch @@ -1709,7 +1709,8 @@ get_battery() { "Mac OS X") battery="$(pmset -g batt | grep -o '[0-9]*%')" - battery_state="$(pmset -g batt | awk 'NR==2 {print $3}')" + state="$(pmset -g batt | awk '/;/ {print $4}')" + [[ "$state" == "charging;" ]] && battery_state="charging" ;; "Windows")