Skip to content

🔋 OS X and Linux compatible battery utilities

License

Notifications You must be signed in to change notification settings

faho/pkg-battery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

🔋 battery ▮▮▮▮▮▮▯▯▯▯

OS X and Linux compatible battery utility.

Install

wa g battery

Usage

Display battery slots.

if available battery
  battery
end

Customize battery options.

if available battery
  battery ▶ ▷
end

Check if the battery is currently charging.

if set -q BATTERY_IS_CHARGING
  echo Charging ⌁
end

Environment Variables

  • BATTERY_IS_PLUGGED

Unset if false.

  • BATTERY_IS_CHARGING

Unset if false.

  • BATTERY_TIME_LEFT

Time left in HH:MM format.

  • BATTERY_SLOTS

Number of slots/gauges from 10 available.

  • BATTERY_MAX_CAP

Battery maximum capacity.

  • BATTERY_CUR_CAP

Battery current capacity.

  • BATTERY_PCT

Current battery life in %.

Screenshot

License

MIT © Jorge Bucaran

About

🔋 OS X and Linux compatible battery utilities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages