Oh wow I can't wait to check this out. I also just came across gpu-screen-recorder and it should come with scripts that you can set to run on system startup. Then setup a keybinding in system settings for your start/stop and save functions (keybinds to run the scripts).
I had trouble doing that so I'm excited I just stumbled across this!
A Quirk Dog!