With the protected battery boards and my new trackball 2.0 arriving I finally found the time to flash the LPC firmware required for the battery status display.
I was able to confirm the problem that sometimes after kernel upgrades, the battery status would vanish. This is a problem with the packaging and I posted the fix here:
I configured wayland like this:
"battery": {
"bat": "8xlifepo4",
"format": "BAT {capacity}% <span font='Font Awesome'>{icon}</span>",
"format-icons": ["", "", "", "", ""],
"format-charging": "BAT {capacity}% <span font='Font Awesome'>{icon}</span> ",
"format-full": "BAT 100% ",
"interval": 30,
"states": {
"warning": 10,
"critical": 5
},
"tooltip": false,
"on-click": "gnome-power-statistics"
},
This will show a “flash” symbol when power is plugged in and also give a visual indication of the battery charge. If the battery is too low, it will first turn red and then start blinking using this CSS:
#battery.warning:not(.charging) {
color: #FF0000;
}
#battery.critical:not(.charging) {
animation: blink_effect 0.5s steps(2) infinite;
}
@keyframes blink_effect {
50% { color: #FF0000; }
100% { color: #0000FF; }
}