omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Battery charging level threshold

Open kromsam opened this issue 3 months ago • 3 comments

Important feature for modern laptops: ability to set a threshold for charging your laptop. It's a feature on most modern laptops, built into the kernel. It was already brought up here: https://github.com/basecamp/omarchy/discussions/627 , but this seems important enough for an issue.

On Gnome this awesome extension was available: https://github.com/maniacx/Battery-Health-Charging

For Omarchy we now need something similar. In the above mentioned some references are already mentioned:

Coming from Gnome I have little knowledge on Hyprland but this seems like a possible first implementation : https://github.com/ReZeroE/Linux-Battery-Threshold-Tool

For reference : https://www.linuxuprising.com/2021/02/how-to-limit-battery-charging-set.html

Specific to Asus https://aur.archlinux.org/packages/bat-asus-battery-bin

And the Gnome details https://vdwaa.nl/gnome-upower-charge-thresholds.html

The maker of the Gnome extension also was so kind to share the resources he used: https://maniacx.github.io/Battery-Health-Charging/credits

Right now I fixed this with some self-made scripts. It's not too complicated. Let's put this functionality into Omarchy!

kromsam avatar Aug 29 '25 13:08 kromsam

I changed the values here /sys/class/power_supply/BAT*/charge_control_{start, end}_threshold is working fine for me.

marcelotk15 avatar Aug 29 '25 16:08 marcelotk15

i made a toggle in my waybar that toggles through a 60/80/100 % threshold , i could share that.

although i think this setting makes more sense in the 'toggle' menu

kromsam avatar Aug 29 '25 16:08 kromsam

Hopefully considering also #1213 #655

emourad avatar Sep 04 '25 22:09 emourad

I don't think it's something most folks will be tinkering with, but would make for a nice Manual in the Discussion section 👌

dhh avatar Sep 16 '25 14:09 dhh