#!/bin/sh
printf %.0f $(echo "`cat /sys/class/power_supply/BAT1/energy_now `/`cat /sys/class/power_supply/BAT1/energy_full`*100" | bc -l)