Skip to content

Instantly share code, notes, and snippets.

@qpwo
Created March 3, 2021 04:51
Show Gist options
  • Save qpwo/6d2936455c36272066b60d81a397305c to your computer and use it in GitHub Desktop.
Save qpwo/6d2936455c36272066b60d81a397305c to your computer and use it in GitHub Desktop.
macos shell script to take screenshot and webcam photo every two minutes to track how you spend your computer time
while :
do screencapture ~/screenshots/$(date +%y%m%d%H%M%S)-screen.png;
imagesnap -w 1 ~/screenshots/$(date +%y%m%d%H%M%S)-cam.jpg;
sleep 120;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment