prasanthrangan / hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Battery icon doesn't automatically change

babylittlepony opened this issue · comments

Description

When i plugged battery, the icon still same, it doesn't automatically change to plugged icon

Expected Behavior

icon changed automatically to what it should be

Actual Behavior

icon doesn't change automatically, must clicked
Screenshots

not-charged

must clicked it to change
charged

Environment

Linux Distro: Arch Linux
Linux Version: Linux archlinux 6.9.3-arch1-1
Hyprland Version, output of hyprctl version: Hyprland, (props: bump version to 0.40.0).
Installation Environment: Main Hardware
Other info: -
commented

did you wait for 5 60 seconds?

Here's the manpage on how the battery module works. https://manpages.ubuntu.com/manpages/focal/man5/waybar-battery.5.html

image

Basically we can make a lesser interval but that would mean we are polling waybar more frequently just to make the charger icon change in an instant. That would cause it to use more CPU ticks.

If you want it to be instant, you can add this line "interval" : 1, inside the ~/.config/waybar/modules/battery.jsonc file. Be sure to restart waybar.

i didnt know it, thanks