summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-03-24 22:22:22 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-03-24 22:23:47 +0100
commit4fcb900b0cb1e9a0a8643d71a747481ea79b43db (patch)
treeb12a8f920153267ca4fc19934719f29fba1340b3
parent5970b68157f26f35e3ecd6f2c24a349fe9a0444b (diff)
downloadimpressive-display-4fcb900b0cb1e9a0a8643d71a747481ea79b43db.tar.gz
impressive-display-4fcb900b0cb1e9a0a8643d71a747481ea79b43db.tar.bz2
impressive-display-4fcb900b0cb1e9a0a8643d71a747481ea79b43db.zip
impressive-display: Make interval between slide transitions configurable.
-rw-r--r--debian/impressive-display.default3
-rwxr-xr-ximpressive-display/bin/impressive-display5
2 files changed, 7 insertions, 1 deletions
diff --git a/debian/impressive-display.default b/debian/impressive-display.default
index 4f80602..4855bf8 100644
--- a/debian/impressive-display.default
+++ b/debian/impressive-display.default
@@ -26,6 +26,9 @@ DOWNLOAD_INTERVAL=600
PDF_FILE_MASTERS="/usr/share/doc/debian/FAQ/debian-faq.pdf.gz
PDF_FILE_SLAVES="/usr/share/doc/debian/FAQ/debian-faq.pdf.gz
+# Show each slide for <n> seconds
+SLIDE_DURATION=20
+
# launch pulseaudio daemon if not already running
WITH_PULSEAUDIO="yes"
diff --git a/impressive-display/bin/impressive-display b/impressive-display/bin/impressive-display
index 67b0989..a9a0512 100755
--- a/impressive-display/bin/impressive-display
+++ b/impressive-display/bin/impressive-display
@@ -72,6 +72,9 @@ HTTP_PROXY_URL=""
# interval of PDF continuous downloads
DOWNLOAD_INTERVAL="600"
+# show each slide for 20 seconds by default
+SLIDE_DURATION="20"
+
if [ -r $HOME/.impressive-display-secrets ]; then
. $HOME/.impressive-display-secrets
fi
@@ -242,7 +245,7 @@ if [ -n "$pdffile" ]; then
# on GL systems add: --supersample -k
if which impressive 1>/dev/null; then
- impressive ${fade_options} --fake-fullscreen --wrap --poll 30 -a 5 --nologo "${pdffile}" 1>/dev/null
+ impressive ${fade_options} --fake-fullscreen --wrap --poll 30 -a ${SLIDE_DURATION} --nologo "${pdffile}" 1>/dev/null
fi
stop_pdfdownload_loop