Merge pull request #522 from jorgegonzalez/master

This commit is contained in:
Andrew Titmuss 2016-12-13 10:01:22 +11:00
commit 4821d6860a
No known key found for this signature in database
GPG key ID: 8AF42975C787E0B2

View file

@ -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")