implement battery plugin
WIP becase I need somebody on Linux to try this before merging.
I'm on macOS and my raspberry pi just says
No support for device type: power_supply when running
Also, is ion being used on windows and how would one get the battery info? In the zsh implementation of this there is no windows support at all.
A few things I noticed while implemented this:
- AFAICT there is no
roundfunction for ions numbers so I had to do
let x //= 1
//does not work in arithmetic expansions:
echo $(( x//5 )) => expected number token, got Divide instead