Maybe put it on a timer, or have the laptop control its own outlet.
Charge limiting software? Surely there is at least one that works from the CLI.