Update 2023-03-05: Version 0.1.4 with minor changes for kernel version 6.2. The AUR package has been updated as well.
This is a set of patches for the Linux kernel that enable changing the battery charge thresholds. This is useful for example to limit the charge to 80% to prolong the life of your battery if you leave the charger connected all the time.
The project on Github: https://github.com/c—/applesmc-next
Arch Linux AUR package: https://aur.archlinux.org/packages/applesmc-next-dkms