Skip to content

Latest commit

 

History

History
75 lines (49 loc) · 1.61 KB

README.md

File metadata and controls

75 lines (49 loc) · 1.61 KB

Battery

OS X and Linux compatible battery utility

MIT License Fish Shell Version Oh My Fish Framework


Install

omf install battery

Usage

Display battery slots.

battery

Customize battery options.

battery ▶ ▷

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