5 ms·
I started working on a little CLI battery status indicator even before I knew Apple was going to pull the time remaining feature. On macOS I like to hide the do
by imwally 10y ago
I started working on a little CLI battery status indicator even before I knew Apple was going to pull the time remaining feature. On macOS I like to hide the dock and menu bar but usually keep terminal open with tmux running so I decided to write something I could place in my tmux status line where I could keep an eye on my battery life.
https://github.com/imwally/battstat https://github.com/imwally/battstat
- lloeki 10y agoI've had a python{2,3} script for, like, years, collecting advanced details using ioreg. Sample output: ~> ~/Workspace/toolbelt/battery Temperature = 2967 CycleCount = 384 DesignCapacity = 6600 MaxCapacity = 6362 WearRatio = 96% CurrentCapacity = 5886 ChargeRatio = 92% Voltage = 12162 Amperage = -1061 InstantAmperage = 64286 InstantTimeToEmpty = 8:34 TimeRemaining = 5:33 AvgTimeToEmpty = 5:33 FullToEmptyTime = 5:59 https://github.com/lloeki/toolbelt/blob/master/battery https://github.com/lloeki/toolbelt/blob/master/battery
- serkanyersen 10y agoThis is awesome. Thanks
- stevefeinstein 10y agoThis might work well with bitbar. https://getbitbar.com https://getbitbar.com