ngpm is a very simple user-space GLib battery status monitor for Linux and BSD with an optional dependency on GTK 3 for graphical alerts.
Please read Design Manifesto before installation.
Caution
I been not testing this version on NetBSD yet, battery status is most likely to be wrong if compiles.
Compilation should detect one of the possible targets: FreeBSD, NetBSD, or Linux. To compile the source, run:
bmakeTo compile ngpm with GTK 3 dialogs:
bmake -D WITH_GTKAfter installation, ngpmd should start automatically in new sessions on most
POSIX systems:
bmake installIf you are a careful BSD user looking for your DESTDIR:
DESTDIR=/tmp bmake installAdditionally, you may want to change your battery ID (although this is not
relevant on FreeBSD, as hw.acpi.battery.life will return the combined capacity
of all available batteries):
BATTERY=1 bmakeFor more installation options check help command:
bmake helpTip
On NetBSD bmake is just make
After compilation you get two executables ngpm and ngpmd.
ngpmd is not a system daemon - ngpmd.desktop file will be installed to
enable session application autostart.
The ngpm command can help retrieve basic information about the battery and
configuration. For example, to print the current battery capacity percentage,
run:
ngpm -cIt's worth noting that non meta commands can be chained and execte in option set defined order. The listed outputs will be separated be a new line character ('\n'):
ngpm -csngpmd comiplation constants can be listed with:
ngpm -lngpm assumes you don't change those values often, so changing them requires recompilation.
To learn more about ngpm client, use the help option:
ngpm -hTo contribute:
- Fork this repo
- Make your changes on a separate branch
- Apply your feature branch for merge
- Thanks for contributing 🎊
ngpm is a free/open software licensed under ISC, suplementary to Berne, UCC, or TRIPS copyright conventions.