I created a program that allows me to control the max charge level of my laptop battery on linux, and persists the change through reboot. Written in rust, and I use it several times per week.
I designed it for my system, but it should work on any linux system with a battery, kernel version 5.4+, and systemd.