Skip to content

animation-charging: frame time unstable and constantly differs. #568

@SuperPrower

Description

@SuperPrower
[module/battery]
type = internal/battery

; This is useful in case the battery never reports 100% charge
full-at = 99

; Use the following command to list batteries and adapters:
; $ ls -1 /sys/class/power_supply/
battery = BAT0
adapter = AC

format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>

label-charging = %percentage%%
label-discharging = %percentage%%
; Only applies if <ramp-capacity> is used
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = �
ramp-capacity-4 = 

; Only applies if <animation-charging> is used
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = �
animation-charging-4 = 
; Framerate in milliseconds
animation-charging-framerate = 500

Title speaks for itself: animation is weird, it can wait more that delay for the first frame, and then run trough remaining frames faster than the blink of an eye, or be almost normal.
In other words, time that 1 frame stays drawn is different every time.

My version of polybar is:

$ polybar --version
polybar 3.0.5

Features: +alsa +curl -i3 -mpd +network

My OS is Arch Linux, with Intel Graphics (only).
I can't currently provide any screencast, but will do so if I have possibility.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions