Battery notifications daemon like bato written in Ocaml for tiling window managers with more configuration options like upper thresholds.
Configuration in TOML.
Notification events:
- level full
- level sufficient
- level low
- level critical
- charging
- discharging
Clone this repo, cd into it. The binary can be executed using:
chmod +x ./_build/default/bin/main.exe
./_build/default/bin/main.exeYou'll need dune (Ocaml's build system) to build the project from source. cd into the repo and:
dune build --releaseThe binary looks for the config file config.toml located in $HOME/.config/obat, without which it will exit after throwing an exception.
Example configuration:
# $HOME/.config/obat/config.toml
low_threshold = 25
critical_threshold = 20
high_threshold = 85
polling_interval = 20.0
enable_hibernation = false