Skip to content

Instantly share code, notes, and snippets.

View roma-guru's full-sized avatar
🌴
In Cyprus

Roman Voropaev roma-guru

🌴
In Cyprus
View GitHub Profile
@roma-guru
roma-guru / capture.sh
Last active October 5, 2022 13:57
Simple screen recorder
#!/bin/zsh
screenlogs_dir=$HOME/Documents/ScreenLogs/$(date "+%Y-%m-%d")
[ ! -d $screenlogs_dir ] && mkdir -p $screenlogs_dir
screen_file=$screenlogs_dir/$(date "+%H-%M").png
/usr/sbin/screencapture -xm $screen_file
# Add to crontab:
# crontab -e
# */30 * * * * /Users/roma/Documents/ScreenLogs/capture.sh