Just another battery monitor for Linux.
ACPI events doesn't work properly for my laptop, and most of the polling implementations look pretty boring.
Who doesn't like messing with Rust futures?
I ended up adding other backends too.
This is the default backend, this should be fine for most laptops
Subscribe to the kernel's netlink socket for ACPI events, This may not work if udev events aren't working for you, but worth trying
Use this if neither Udev nor Acpi backends work for you.
A systemd service batmon.service
has been provided. Feel free to modify it to change thresholds or other settings.
cargo install --path .
sudo install -m 0644 batmon.service /lib/systemd/user/
systemctl --user enable --now batmon.service
batmon --help