That’s what I do with my ThinkPad. Linux could set this for many years in the CLI. But it depends on battery, firmware, manufacture (ACPI). So only two years (?) ago GNOME added it in the GUI.
When I need a full charge, it change it.
What I also would appreciate a force shutdown at 5% to prevent deep discharge. Which is harmful. Sometimes the firmware does that at 2%. Cars seem to do that more aggressively?
Physics and chemistry doesn’t like extremes. Whether you’re sprinting on a roadbike, run a piston engine, a turbofan on a plane or a battery. If you are conservative, you preserve the maximum for when it is needed.
That doesn't seem to apply to exercise physiology where high intensity training is beneficial.