Battery Checker



I have made a battery checker. It plays a low battery sound and shows a visual notification warning when battery is discharging and is below 18%.
Code is here
I am no guru, there sure is a better way to do this.
Can something like this be implemented in mate-power-manager ?


By default, you already get a notification when your battery goes below 10% in Ubuntu MATE.