summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanielsLPecke <daniel.letsplay007@gmail.com>2016-11-11 12:41:56 +0100
committerDanielsLPecke <daniel.letsplay007@gmail.com>2016-11-11 12:41:56 +0100
commit8f9a900b7a7218919dda6e30f98b8513815d2ab6 (patch)
tree22ec564617c4b483eac02ebac2b96e1b05718a37
parent189da2c79ce6c6ff4fe5270fe0b3ecde4e451518 (diff)
downloadimpressive-display-8f9a900b7a7218919dda6e30f98b8513815d2ab6.tar.gz
impressive-display-8f9a900b7a7218919dda6e30f98b8513815d2ab6.tar.bz2
impressive-display-8f9a900b7a7218919dda6e30f98b8513815d2ab6.zip
Change variables (WARNING: not RUNNABLE.)
-rwxr-xr-xbin/impressive-display32
1 files 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