-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.sh
executable file
·75 lines (60 loc) · 2.87 KB
/
settings.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# set up dirs and stuff here
# use make-auto-pics.sh to inject these settings into other files
# could do host detection or just hard code values for local setup
# X11 display var if needed
#DISPLAY=:0.0
#DISPLAY=:0
#export DISPLAY
# The size of the screen you'll be running on. This will get pushed into the HTML/JS/CSS where needed
SCRWIDTH=1920
SCRHEIGHT=1080
MILLISEC=1
let SECONDS=1000*MILLISEC
let MINUTES=60*SECONDS
# default time (millisecs) between page reload, slide change and special effect
let REFRESHTIME=60*MINUTES
let CHANGETIME=30*SECONDS
let EFFECTTIME=2*SECONDS
# Set a single transition effect to use here if you like
# none, blind, clip, scale, fade, slide, shake, highlight, puff, clip2, blind2-6, slide2-4, scale2-5, shake2, drop, pulsate, fold, explode, fold2, bounce, drop2-4, explode2-3
FIXEDEFFECT=""
# settings when debugging
#let REFRESHTIME=3*MINUTES
#let CHANGETIME=5*SECONDS
#let EFFECTTIME=300*MILLISEC
# full path to location of this BigScreen project
BIGSCREEN=/cygdrive/d/d/s/github/BigScreen
# full path to location of image files to scan for
DROPBOX=$BIGSCREEN/Dropbox
DROPBOXSUBDIR=Photos/Wallpaper
STARTIMAGE="wallpaper.png"
# show the url of the currently viewed slide - for debugging when a slide shows problems
SHOWURL=false
# allow console logging of what is going on.
LOG=false
# flag to use the no internet image for everything
NOINTERNET=false
NOINTERNETIMAGE="HIDDEN/no-internet.jpg"
# unix like systems use:
BIGSCREENURL=file://$BIGSCREEN
DROPBOXURL=file://$DROPBOX/$DROPBOXSUBDIR
# chrome windows systems use:
BIGSCREENURL="file://D|d/s/github/BigScreen"
DROPBOXURL="file://D|d/Dropbox/$DROPBOXSUBDIR"
DROPBOXURL="$BIGSCREENURL/Dropbox/$DROPBOXSUBDIR"
# firefox windows
#BIGSCREENURL="file:///D:/d/s/github/BigScreen"
#DROPBOXURL="$BIGSCREENURL/Dropbox/$DROPBOXSUBDIR"
# set the browser to use unix/win/mac
BROWSER=chromium-browser
BROWSER="$BIGSCREEN/macbrowser.sh"
BROWSER="/cygdrive/c/Program Files (x86)/Mozilla Firefox/firefox.exe"
BROWSER="/cygdrive/c/Users/me/AppData/Local/Google/Chrome SxS/Application/chrome.exe"
BROWSER="/cygdrive/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"
export BIGSCREEN BIGSCREENURL DROPBOX DROPBOXSUBIR DROPBOXURL BROWSER SCRWIDTH SCRHEIGHT
[ ! -d "$BIGSCREEN" ] && echo Directory BIGSCREEN set incorrectly: $BIGSCREEN does not exist
[ ! -d "$DROPBOX" ] && echo Directory DROPBOX set incorrectly: $DROPBOX does not exist
[ ! -d "$DROPBOX/$DROPBOXSUBDIR" ] && echo Directory DROPBOXSUBDIR set incorrectly: $DROPBOX/$DROPBOXSUBDIR does not exist
[ ! -f "$DROPBOX/$DROPBOXSUBDIR/$NOINTERNETIMAGE" ] && echo Image NOINTERNETIMAGE set incorrectly: $DROPBOX/$DROPBOXSUBDIR/$NOINTERNETIMAGE does not exist
[ ! -f "$DROPBOX/$DROPBOXSUBDIR/$STARTIMAGE" ] && echo Image STARTIMAGE set incorrectly: $DROPBOX/$DROPBOXSUBDIR/$STARTIMAGE does not exist
[ ! -x "$BROWSER" ] && echo Browser BROWSER set incorrectly: $BROWSER not executable