mirror of
https://github.com/polybar/polybar.git
synced 2026-02-08 07:45:22 +00:00
Displays real percentage instead of being set to 100 if percentage > full-at * battery: added percentage_raw token, which ignores full-at * battery: current_percentage returns raw, added clamping function instead * battery: clamp percentage used by build() Made clamp_percentage() const to allow its usage inside build() * battery: read and return percentage in one line