Merge pull request #522 from jorgegonzalez/master
This commit is contained in:
commit
4821d6860a
1 changed files with 2 additions and 1 deletions
3
neofetch
3
neofetch
|
@ -1709,7 +1709,8 @@ get_battery() {
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
battery="$(pmset -g batt | grep -o '[0-9]*%')"
|
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")
|
"Windows")
|
||||||
|
|
Loading…
Reference in a new issue