I use a windows app called Timesnapper.
It records everything you do across all your screens the entire day. You can enter a password and playback things that happened through the day. This is useful if you are doing webdev / sysadmin work, and make changes that break things. You go back and see what settings you changed
I can't find a macOS equivalent
I found this superuser thread here, but its quite old
I checked alternatives and didn't find any to my liking
Can anyone give me an alternative, either a premade app (paid or free) or a bash-script / applescript workflow?