Skip to content

Instantly share code, notes, and snippets.

@timfel
Created February 2, 2012 13:36
Show Gist options
  • Save timfel/1723502 to your computer and use it in GitHub Desktop.
Save timfel/1723502 to your computer and use it in GitHub Desktop.
echo "You have 10 seconds, then I'll start and take $[$1 + 1] screenshots and press space $1 times"
sleep 10
/usr/bin/import -window root "screen_0.jpg"
for i in `seq -w 1 $1`; do
xdotool key space
sleep 3
/usr/bin/import -window root "screen_${i}.jpg"
done
convert "screen_*.jpg" presentation_to_pdf.pdf
rm screen_*.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment