Battmon is a simple acpi battery monitor applet that sits in the system tray. It is written in bash/zenity and has support for hibernation when the battery reaches a critical level (5%).
Download the source tarball here. Current version 0.9.1.
gtk+2.0 version 2.20 or later
zenity version 2.30 or later
acpi installed and enabled
pm-utils and specifically pm-hibernate
tar -zxvf battmon-0.9.1.gz
su (or sudo)
[type root password and hit enter]
The executable is installed to /usr/local/bin and resource files to /usr/local/share/battmon). The executable is called, “battmon”.
Run “battmon” (without the quotes) to start the applet.
Add “battmon &” (without the quotes) to your window manager startup file
Type battmon -u for command line options:
-s to set the sleep delay in seconds-b to set a beep on critical battery (-b 1 = on, -b 0 = off)
-h to hibernate on critical battery (-h 1 = on, -h 0 = off) (requires pm-utils to be installed)
-d to specify an alternate path for tray icons to allow for user customization
-f to print all icon file names to help with customization
-u to print usage options
-q to stop the applet
Defaults are a 10 second sleep delay between updates and no beep or hibernate.
su to root or sudo ./uninstall
richjack with additions from Gareth Edwards
richjack80 at yahoo dot com
Leave comments below in the absence of a proper bug tracker.
Battmon is licensed under the GPLv2.
Icons are licensed under the GPLv2 and are adapted from KDE4 Oxygen icons using GIMP.