ohmyzsh / ohmyzsh

🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up with the latest updates from the community.
https://ohmyz.sh
MIT License
174.4k stars 25.93k forks source link

Display two batteries status? #7066

Closed DanitiKain closed 6 years ago

DanitiKain commented 6 years ago

I have a lenovo t450 which has an internal and a external battery. It use the internal battery first then it uses the external battery. Is there a way with zsh to show the battery status of both batteries via zsh?

mcornella commented 6 years ago

If there is a way in your system to access the charge levels of both, then you can adapt the battery plugin to use them. See https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/battery/battery.plugin.zsh