I’ve messed around with this in the past. My solution is at https://github.com/kovasap/auto-screenshooter. If you want activitywatch to manage it, you could probably register it as a watcher somehow. I’m not sure about getting the image data into the AW UI though.