@whitequark have you already considered just a simple OBS screen capture with OBS's replay buffer feature?
otherwise `while true; do sleep 60; import -root screenshot_$(date)_.png; done` with something to expire old files (logrotate? lol) could do a lot