Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 1.23 KB

README.md

File metadata and controls

73 lines (48 loc) · 1.23 KB

🔋 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