procfetch icon indicating copy to clipboard operation
procfetch copied to clipboard

Issue #127 fixed!

Open akshaykhoje opened this issue 1 year ago • 3 comments

The issue #127 is hereby fixed as can be seen in the attached screenshot.

image

It is also made dynamic for the folder in /sys/class/power_supply. The code basically checks for any folder inside this one that starts with 'BA'. The required files of status and capacity are generally located in BAT0 or BAT1 folder here. The other case maybe of BAPM.

Thus the battery folder will always begin with 'BA' substring. The other folder will be for the adapter which doesn't start with 'BA' at all!

Hope this helps.

Revert back if any changes are required.

Thank you :)

akshaykhoje avatar Oct 17 '23 13:10 akshaykhoje