I was wondering if it is possible to dynamically change the current power setting? For example: Set to high performance when plugged in, or battery saver when not, etc.

I'm running Ubuntu 21.04



Thank you.