Limit battery charging

The old charge_control_end_threshold trick doesn’t seem to be working in Clear Linux: how do you guys limit your battery charging (… assuming, that is, that you are running CL on a laptop)?

There is a GNOME extension that should be doing precisely this, but unfortunately doesn’t work in CL (or, at least, doesn’t work for me).