Skip to content

A CLI tool for setting battery charge limit of ASUS laptops on Linux

Notifications You must be signed in to change notification settings

stlenyk/batterrier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batterrier

A CLI tool for setting battery charge limit of ASUS laptops on Linux.

credits

Installation

  1. Install Rust

  2. Install the binary:

    cargo install --git=https://github.com/stlenyk/batterrier.git

Usage

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

Examples

$ batterrier set 60 --persist
🔋100 -> 🔋60
$ batterrier set 80
🔋60 -> 🔋80
Creating systemd service
$ batterrier get
current: 🔋80
persisted: 🔋60

About

A CLI tool for setting battery charge limit of ASUS laptops on Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages