#!/bin/sh
POWER="$(pwrstat -status | grep "Load" | awk '{print $2}')W"
CHARGE=$(pwrstat -status | grep "Battery Capacity" | awk '{print $3$4}')
if [[ "$CHARGE" == "100%" ]]; then
  echo $POWER
else
  echo "$CHARGE $POWER"
fi
