Re:How to Run a Live Coding Stream on Twitch Using OBS
by freedomben on Tuesday July 14, 2020 @11:00PM
(#23840740)
That looks cool. Too bad there's not a Linux version. I suspect you could code a screenshot every 10 seconds in bash pretty easily anyway.
[ Parent
| on HN ]
Re:How to Run a Live Coding Stream on Twitch Using OBS
by o-__-o on Wednesday July 15, 2020 @02:33AM
(#23842019)
Drop this into a crontab with your desired frequency:
DISPLAY=:0 import -window root "$HOME/Pictures/screenshot-$(date '+%Y%m%d%H%M').png"
RequirementsImageMagick installed
Improvements
You can change the date +FORMAT for a more readable filename. See the date(1) manpage.
Caveats
You may need to change your DISPLAY to match your actual X11 server. You may need to add XAUTHORITY=$HOME/.Xauthority depending on your X11 ACLs. Probably doesn't work with Wayland, but nothing works with Wayland so YMMV.