Skip to content

Batsignal is a lightweight command-line utility designed for seamless integration with scripts, allowing you to automate actions based on your device's battery status.

License

Notifications You must be signed in to change notification settings

MidasVanVeen/batsignal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batsignal can be used in shell-scripts to wait for certain battery conditions, or to check current battery conditions. See examples below.

Examples

batsignal --wait --state charging && echo "Charger connected!"
batsignal --wait --lt 10 && echo "Battery below 10%!"
batsignal --lt 25 && echo "Battery below 25%!" || echo "Battery okay"

Install

A simple cargo install batsignal should do it.

About

Batsignal is a lightweight command-line utility designed for seamless integration with scripts, allowing you to automate actions based on your device's battery status.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages