Battery status in the psmux status bar. Port of tmux-battery.
Uses native Windows CIM (WMI) -- no external tools needed.
set -g @plugin 'psmux-plugins/psmux-battery'Add {battery} to your status-right:
set -g status-right '{battery} | %H:%M %d-%b-%y'Or press Prefix + B to see battery info as a message.
| Level | Color |
|---|---|
| > 50% | Green |
| 20-50% | Yellow |
| < 20% | Red |
| Status | Icon |
|---|---|
| Charging | + |
| Charged | = |
| Discharging | - |
Polls Win32_Battery via CIM on client-attached hook and status refreshes. Desktops without batteries show "AC".
MIT