Skip to content
OS X and Linux compatible battery utilities
Branch: master
Clone or download
Pull request Compare This branch is 11 commits ahead of faho:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
functions
LICENSE.md
README.md
init.fish

README.md

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

You can’t perform that action at this time.