end-4 / dots-hyprland

i hate minimalism so...
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
4.5k stars 311 forks source link

Battery widget #18

Closed WizenedPottle closed 1 year ago

WizenedPottle commented 1 year ago

I'm a newbie with eww, but I'm trying to figure it out. I just want to make it clear from the start.

The battery widget isn't working for me. After some investigation, I discovered that my battery information is stored in /sys/class/power_supply/BAT0 compared to BATT in your configuration. I :s///g'ed that, and now the script does what it's supposed to do. However, the widget still doesn't work. Can you recommend my next steps in figuring this out?

Great repo btw!

end-4 commented 1 year ago

hi there, can you try manually running cd .config/eww && scripts/battery and provide the output? does it output a proper json with the correct values ("percentage" should be 0 to 100)? with your given information i'm not sure what else there is to fix

WizenedPottle commented 1 year ago

Output it provides: {"quickicon": "", "icon": "", "percentage": 100, "wattage": "12.8 W", "status": "00:34h left", "circolor": "#ffdbc4", "cirbgcolor": "transparent", "color": "white", "bgcolor": "transparent" }

It should be at 100% so that's correct, I don't know about this 00:34h left.

I will try to figure something out later today, will update if I figure something out.

end-4 commented 1 year ago

would be nice if you could send a screenshot

WizenedPottle commented 1 year ago

Apologies for the delay in getting back to you. I had an exam in Thermodynamics, which required my full attention.

Regarding the issue, I am using your main repository but have customized the color scheme using Summer Gruve. Here is a screenshot:

Please let me know if you have any insights or suggestions for resolving this issue. Thank you for your understanding.

end-4 commented 1 year ago

Oops i think my commit saying hopefully fixes #18 auto-closed it lol Anyway you should try again with that fix in https://github.com/end-4/dots-hyprland/commit/b05be1394b2230ce98c278d2c773aeac8183da47

WizenedPottle commented 1 year ago

Thank you man!