Skip to content

oh-my-fish/plugin-battery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

OS X and Linux compatible battery utilities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%