Incredibly simple CLI to show the battery level in tmux. Mac specific.
You can see the checkmark on the left of the date.
This is written in C using CoreFoundation and IOKit.
tmux-battery
It outputs:
- Full battery, plugged in: a checkmark
- Charging battery, plugged in: an up arrow and the percentage
- Discharging battery, not plugged in: a down arrow and the percentage
- Below the threshold (10% by default): a down arrow, the percentage, and an exclamation point