This is a daemon I'm creating for Linux machines. It'll beep when the power supply goes above 80 or below 40 percent, to notify you to unplug or plug in your charger for maximum battery life.
To make the file run make or make all. To clean run the make clean.