Search notes:

/sys/class/power_supply/BAT0/status

Apparently, this »file« shows if the battery is begin chaged or discharged:
$ cat /sys/class/power_supply/BAT0/status

See also

Linux on laptops
/sys/class/power_supply/BAT0

Index