Skip to content

status-bar script for multi-battery systems on Linux

Notifications You must be signed in to change notification settings

Zaph-x/poly-battery-status

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

poly-battery-status

Generates a pretty status-bar string for multi-battery systems on Linux. Written in Rust and shouldTM work with n batteries.

Personally used with i3 (i3blocks) and sway (i3blocks).

Features

  • Uses sysfs for gathering batteries and values on these
  • Calculates time-to-depleted and time-to-full from current power-draw
  • Takes battery-thresholds, such as TLP, into account when calculating time-to-full. Defaults to 80%.
  • Omits time-to-* when passive (specifically when sysfs delivers a status of Unknown)

Usage

For developing and experimenting use Cargo:

repo/~ cargo run

For building also use Cargo:

repo/~ cargo build --release

Find the built executable under repo/target/release/poly-battery-status Alternatively, see the releases page for pre-compiled executables.

About

status-bar script for multi-battery systems on Linux

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%