Receive Battery Event Notifications with This New Battery Monitor

Ubuntu ships with its own battery applet, Indicator-Power, that is visible in the system tray area and although it provides users with a simple, easy way to gauge their current battery level, check charge information, etc, it doesn’t offer notification alerts for anything other than battery low and battery critically low – at least not by design. So users have no other option than to turn to third-party apps whenever they would like to receive notifications concerning battery status events, like ‘now charging’.

Battery Monitor

Discharging notice

Battery Monitor‘ is a small Python tool that you can use to monitor your battery’s life.

No, it is not an indicator applet and it doesn’t add any icons to your system tray area but instead, Battery Monitor runs in the background in order to be able to notify you of battery events via Ubuntu’s native desktop notification system, Notify-OSD.

So, for example, you will see a ‘critical low battery’ notification bubble when your laptop battery drops below 10% along with an alert tone.

Unplugging your charging cable will trigger a ‘Discharging’ notification and plugging it back inwill trigger a “Charging” notification. You’ll get a battery full notification when your battery reaches 100% too.


Installing Battery Monitor on Ubuntu

Battery Monitor is free, open-source software. It is available to install on Ubuntu 14.04 LTS and above. You will find an Ubuntu installer on the project’s release page.

Remember that the app automatically adds itself to your startup items and so you will need to manually launch it for it to start. It also requires some dependencies that you can get using the code below:

sudo apt install python3 python3-gi libnotify-dev acpi

After that, you should be good to go.

About The Author
Martins Okoi
Computer Science enthusiasts with a passion for learning new things. In my spare time, I listen to music, read like a compiler, and learn like an A.I algorithm.

Leave a Response