diff --git a/batterybar/batterybar b/batterybar/batterybar index 0308abab..be2d2b22 100755 --- a/batterybar/batterybar +++ b/batterybar/batterybar @@ -25,7 +25,7 @@ battery_count=${#output[@]} for line in "${output[@]}"; do percentages+=($(echo "$line" | grep -o -m1 '[0-9]\{1,3\}%' | tr -d '%')) - statuses+=($(echo "$line" | egrep -o -m1 'Discharging|Charging|AC|Full|Unknown')) + statuses+=("$(echo "$line" | egrep -o -m1 'Discharging|Not charging|Charging|AC|Full|Unknown')") remaining=$(echo "$line" | egrep -o -m1 '[0-9][0-9]:[0-9][0-9]') if [[ -n $remaining ]]; then remainings+=(" ($remaining)") @@ -99,7 +99,7 @@ do "Full") color="$full_color" ;; - "AC") + "AC"|"Not charging") color="$ac_color" ;; "Discharging"|"Unknown")