Unverified Commit 4821d686 authored by Andrew Titmuss's avatar Andrew Titmuss

Merge pull request #522 from jorgegonzalez/master

parents eb7eff29 da251b8b
...@@ -1709,7 +1709,8 @@ get_battery() { ...@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment