batlert

Crates.iobatlert
lib.rsbatlert
version1.0.0
created_at2025-03-01 17:27:15.072067+00
updated_at2025-03-01 17:27:15.072067+00
descriptionA GTK popup for linux, to indicate critical battery level
homepage
repositoryhttps://github.com/AtleSkaanes/batlert
max_upload_size
id1573893
size2,229,432
(AtleSkaanes)

documentation

README

BATLERT

A low battery popup for linux, made with GTK. I made this since I wanted something other than a notification to indicate critical battery status. I am not sure on how many devices, DE's, or WM's it will run, I have only tested it on Hyprland, but if you run into any errors, you are more than welcome to make an issue or submit a PR.

Installing

You can install the package with cargo install

$ cargo install batlert

or you can clone the repo locally, and compile it

$ git clone https://github.com/AtleSkaanes/batlert
$ cd batlert
$ cargo build --release # or cargo install --path .

Usage

Just run the program, and it will automatically popup when the battery level is critical. By default it pops up at 5% battery, but you can specify what battery % it should pop up at yourself, with the --battery-pct argument.

$ batlert --battery-pct [INT]

You can look at all the programs arguments by passing the --help flag.

To make the program launch automatically at startup, you can put it in your WM's or DE's startup routine. Like in hyprland you can do:

exec-once = batlert

Now whenever the battery level gets critical, you will see this popup:

Popup example

Commit count: 4

cargo fmt