#!/bin/sh # this one will simply launch au programm (pdfcube) an regurlarly simulate # a space bar key being pressed # man pdfcube to see how to select special page turning # using another version of libpoppler to avoid display problems with latex beamer DELAY=$1 [ $# -ne 1 ] && DELAY=10 LD_PRELOAD=/usr/lib/libpoppler-glib.so.1:/usr/lib/libpoppler.so.1 pdfcube CHANGEME.pdf & sleep 15; while (true); do xsendkeycode 65 1 & sleep 0.01 ; xsendkeycode 65 0; sleep $DELAY; done