Mac Battery Helpers¶ Check if charging or discharging¶ ioreg -r -n AppleSmartBattery | grep IsCharging | cut -c22- # Yes or No Check charge percentage¶ pmset -g batt |xargs | sed 's/.*) \([^ ]*\)%.*/\1%/' # 80%