2 releases

0.1.1 Jul 4, 2022
0.1.0 Oct 20, 2019

#32 in #battery

MIT license

8KB
92 lines

batnotify

Notify you about low battery levels

Installation

batnotify supports Linux, and theoretically, Mac OS. On Linux, ensure the requirements for the dbus dependency are met before compiling the project.

To install the latest version published on crates.io:

cargo install batnotify

To install from the latest commit on the master branch:

cargo install --git https://github.com/dmarcuse/batnotify.git

To update batnotify after installing, re-run the same command you used to install with the --force flag.

Usage

Check battery levels every 60 seconds, and notify at 25% and 10%:

batnotify --critical 10 --low 25 --interval 60

Dependencies

~4.5–7MB
~125K SLoC