I wrote a very quick hacky program for X11 that stays always visible that will display the information for any number of batteries: https://gitlab.com/danbarry16/bat_mon
It ends up being 50kB with minimal optimization and sports a lightweight X11 library (GUI) and JSON parser (configuration).
What about adding a Make rule to auto-generate the one-liner install from the binary?
$ git clone https://github.com/meribold/btry
...
$ make
as -mx86-used-note=no btry.s -o btry.o
objcopy -O binary btry.o btry
chmod +x btry
$ ./btry
Segmentation fault ./btry
$ strace -f ./btry
execve("./btry", ["./btry"], 0x7ffc1a562078 /* 57 vars */) = -1 ENOMEM (Cannot allocate memory)
$ file btry
btry: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, corrupted section header size[1] In the late 80s and early 90s, the battle between those writing handwritten Asm and those using compiled HLLs has many similarities to AI-generated vs non-AI code today.
[1]: https://github.com/meribold/btry/commit/8ef5a4ce58ae73c489d2...
I mean they're very clever and legit and kudos to the people who develop these exploits, but they're not ELF.
Or to flip it round. If Linux accepts something as an ELF that isn't, then it isn't an ELF loader.
Would you describe a web browser that doesn't score 100% on a rendering test as not a browser?