Skip to content

prabhat-suresh/Obat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Obat

Battery notifications daemon like bato written in Ocaml for tiling window managers with more configuration options like upper thresholds.

Features

Configuration in TOML.

Notification events:

  • level full
  • level sufficient
  • level low
  • level critical
  • charging
  • discharging

Prerequisites

  • a notification server, like Dunst, mako etc.
  • libnotify

Setup and Usage

Clone this repo, cd into it. The binary can be executed using:

chmod +x ./_build/default/bin/main.exe
./_build/default/bin/main.exe

You'll need dune (Ocaml's build system) to build the project from source. cd into the repo and:

dune build --release

Configuration

The 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

About

Battery notifications daemon like bato

Resources

License

Stars

4 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors