From 8f9a900b7a7218919dda6e30f98b8513815d2ab6 Mon Sep 17 00:00:00 2001 From: DanielsLPecke Date: Fri, 11 Nov 2016 12:41:56 +0100 Subject: Change variables (WARNING: not RUNNABLE.) --- bin/impressive-display | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/bin/impressive-display b/bin/impressive-display index e4ede36..b688239 100755 --- a/bin/impressive-display +++ b/bin/impressive-display @@ -33,32 +33,15 @@ # texlive-extra-utils (for pdfnup) # poppler-utils (for pdfinfo) -VERSION="0.2.4" +VERSION="0.3.0" -PDF_URL="http://localhost" +# Can be configured at "/etc/default/impressive-display" +DEFAULT_PDF_URI="http://www.cbu.edu.zm/downloads/pdf-sample.pdf" +DEFAULT_RESOLUTION="1920x1080" -WITH_PULSEAUDIO="yes" -HIDE_IDLE_POINTER="yes" - - -# There can be master terminals and slave display. -# All terminal not listed here are slave displays... -PRIMARY_DISPLAYS="$(hostname -f)" - -# these terminals can have different startup URLs -PDF_URL_PRIMARIES="" -PDF_URL_SECONDARIES="" -PDF_URL_PRIMARIES_CREDS="" -PDF_URL_SECONDARIES_CREDS="" - -PDF_FILE_PRIMARIES="" -PDF_FILE_SECONDARIES="" - -# enforce fixed resolution for displays -# PRIMARIES_RESOLUTION="1920x1080" -# SECONDARIES_RESOLUTION="1920x1080" -PRIMARIES_RESOLUTION= -SECONDARIES_RESOLUTION= +# Loggin credentials for websites.. +PDF_URI_CREDS="" +PDF_URL_CREDS="" # launch pulseaudio daemon if not already running WITH_PULSEAUDIO="yes" @@ -94,6 +77,7 @@ IMPRESSIVE_OPTIONS="--transition None" # write some debugging output to stdout when downloading a remote PDF DEBUG_DOWNLOADS="" +# if files exists: source it to this file (The script will overide variables) if [ -r $HOME/.impressive-display-secrets ] && [ ! -d $HOME/.impressive-display-secrets ]; then . $HOME/.impressive-display-secrets fi -- cgit v1.2.3