Change "energy" to "charge" in battery-combined-udev.sh#452
Change "energy" to "charge" in battery-combined-udev.sh#452metam1nd wants to merge 1 commit intopolybar:masterfrom metam1nd:patch-1
Conversation
The /sys/class/power_supply/ files seem to have been renamed to "charge_", using the script in its original form would throw division by zero errors, no values could be read under "energy_".
|
On which kernel? Maybe its different between vendors? |
|
Yeah I think you have the right idea, I'm using the same kernel as you and ChatGPT said the following:
I'm using an older Dell Inspiron Laptop. So there should be a detection logic looking for either version and use the version that is present? |
|
Oh, then its probably your kernel that will switch the naming in the future. Or it keeps as it is. Somehow yes. On the other side: If your script is not working, then just change the paths. |
What do you mean? I'm on I'm gonna play around with it for a bit and add some detection logic, I'm in some kind of programming mood right now :D I'll send you a new PR when I've got it working. |
My mistake. Have seen "I'm using an older Debian Inspiron Laptop.". But that was wrong. |
The /sys/class/power_supply/ files seem to have been renamed to "charge_", using the script in its original form would throw division by zero errors, no values could be read under "energy_".