percent=$(acpi | awk '{print $4}') state=$(acpi | awk '{print $3}' | tr -d ',') case $state in Charging) symbol="\uf0e7" ;; *) symbol="\uf213 " ;; esac echo -e "$symbol $percent"