Skip to content

rupansh/batmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batmon

RUST MPL-2.0

Just another battery monitor for Linux.

Why

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.

Backends

Udev

This is the default backend, this should be fine for most laptops

ACPI

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

Polling

Use this if neither Udev nor Acpi backends work for you.

Service

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

Usage

batmon --help

About

Just another battery monitor for Linux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages