CRON job: Python script to check battery stat

I often forget to charge my battery and most of the time it suspends when it reaches critical level of discharging. So i wrote a python script that will check for battery and leave the work to [hl]cron[/hl] to run in the background. The script uses notify2 for notification.

Save this script anywhere in your home folder.


Install notify2:

sudo pip install notify2