Captures the main screen at regular interval. Saves to ~/Downloads/name. You can specify a name as well as an interval (in seconds). Uses screencapture.
→ sh timelapse.sh
# Interval (in seconds): 1
# Name: recording
# Recording in /Users/thmsbfft/Downloads/recording/
# Press CTRL+C to stop.