falkecarlsen / poly-battery-status

status-bar script for multi-battery systems on Linux
0 stars 1 forks source link

Read TLP_THRESHOLD from fs #4

Closed Zaph-x closed 1 year ago

Zaph-x commented 1 year ago

This commit removes the hardcoded TLP_THRESHOLD value and instead read the value from the filesystem, much like it is currently done for the power draw, charge, and max charge. By doing this, a more consisten charge time can be calculated, as batteries can now have their own thresholds defined.