A CLI tool for setting battery charge limit of ASUS laptops on Linux.
-
Install the binary:
cargo install --git=https://github.com/stlenyk/batterrier.git
batterrier help
Usage: batterrier <COMMAND>
Commands:
set Change battery charge limit
get Print current battery charge limit
clean Restore 100% battery limit and remove systemd service
info Print battery info
completions Generate shell completions
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
batterrier help set
Usage: batterrier set [OPTIONS] <VALUE>
Arguments:
<VALUE> Battery charge % limit [0, 100]
Options:
-p, --persist Persist after system reboot, i.e. create a systemd service
-h, --help Print help
$ batterrier set 60 --persist
🔋100 -> 🔋60
$ batterrier set 80
🔋60 -> 🔋80
Creating systemd service
$ batterrier get
current: 🔋80
persisted: 🔋60