I'm losing my mind trying to recall a simple command I used to check my battery status in the CLI. The output was really human-readable and looked like this: [+] BAT0 [84] when charging, [-] BAT0 [84] when draining, and [59] BAT0 [100] when fully charged. It also showed an X or a checkmark next to ADT0 for the power adapter. I remember it was straightforward and designed for user readability rather than for other programs. Does anyone know what command I'm talking about?
4 Answers
I’m not sure about the exact command you used, but I usually rely on `inxi -B` for a quick battery status check. It gives you information like this:
Battery:
ID-1: BAT0 charge: 57.0 Wh (100.0%) condition: 57.0/60.0 Wh (95.0%)
If you think it's a core utility rather than a package, maybe searching through the Arch Linux package repos for "battery" could jog your memory? Sometimes browsing through available packages helps.
Yeah, `upower` does provide more detailed battery health info, but I remember there was this simpler command that just focused on the charge status without all the extra data.
You might want to try `acpi -b`. It shows battery percentage, charging status, and estimated discharge time, but it's not quite the same output you're describing.
I've tried that one too, but it’s not the command I'm looking for!