Apparently GNOME is supposed to be able to protect batteries that are always charging. My current laptop has this in its firmware and I turned it on and it caps me to 80%, but doing it within GNOME sounds nicer, except it's not working for me. It's not even appearing. Experiment with this and, if necessary, install packages/config files to make it work.