diff options
author | horchi <vdr@jwendel.de> | 2017-03-05 16:47:41 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-05 16:47:41 +0100 |
commit | 22ffee20bbacbc3378e4ba0df5b7f0c3daaeffc0 (patch) | |
tree | de46c945c62d43d1febb027b5bfa075e58c5b69a /contrib | |
download | vdr-plugin-graphtftng-master.tar.gz vdr-plugin-graphtftng-master.tar.bz2 |
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/graphtft-fe.conf | 57 | ||||
-rw-r--r-- | contrib/xsnow.conf | 29 |
2 files changed, 86 insertions, 0 deletions
diff --git a/contrib/graphtft-fe.conf b/contrib/graphtft-fe.conf new file mode 100644 index 0000000..c471e95 --- /dev/null +++ b/contrib/graphtft-fe.conf @@ -0,0 +1,57 @@ +################################################################################# +# # +# The following configuration file is generated automatically by the yaVDR # +# system. Don't change this file as every update of yaVDR will overwrite # +# the local changes. Instead put your required customizations # +# into /etc/yavdr/templates_custom/ based on the original templates # +# under /usr/share/yavdr/templates. # +# # +# http://www.yavdr.org/developer-zone/template-overview/ # +# # +# # +################################################################################# + +description "YaVDR Configuration webinterface" + + +start on started vdr or started openbox-second \ + or vdr-frontend-restart +stop on stopping vdr or stopping openbox + + +env DISPLAY=:1.1 +export DISPLAY + +setuid vdr +setgid vdr + +respawn +normal exit 0 + + + +script +# wait for vdr and Xorg (after wm started) +start wait-for-job-state WAIT_FOR=vdr TARGET_GOAL=start WAIT_STATE=running WAITER=graphtft-fe WAIT_FOREVER=1 ||: +start wait-for-job-state WAIT_FOR=openbox-second TARGET_GOAL=start WAIT_STATE=running WAITER=graphtft-fe WAIT_FOREVER=1 ||: + +# get resolution +TFT_SIZE=`xrandr -q -d $DISPLAY | grep " connected"|cut -d ' ' -f 3` +TFT_WIDTH=`echo $TFT_SIZE | cut -d 'x' -f1` +TFT_HEIGHT=`echo $TFT_SIZE | cut -d 'x' -f2 | cut -d '+' -f1` +MORE_OPTIONS="-c 10" + +# override default settings +test -f /etc/default/graphtft-fe && . /etc/default/graphtft-fe + +GRAPHTFTFEOPTS="-W $TFT_WIDTH -H $TFT_HEIGHT $MORE_OPTIONS" + +exec /usr/bin/graphtft-fe $GRAPHTFTFEOPTS -h localhost + +end script + +post-stop script +# /usr/bin/feh --bg-center /usr/share/yavdr/images/yavdr_logo.png +/usr/bin/hsetroot -center /usr/share/yavdr/images/yavdr_logo.png +end script + diff --git a/contrib/xsnow.conf b/contrib/xsnow.conf new file mode 100644 index 0000000..a37601a --- /dev/null +++ b/contrib/xsnow.conf @@ -0,0 +1,29 @@ +description "xsnow on graphtft-fe" +author "horchi" + +start on started vdr or vdr-frontend-restart +stop on stopping vdr or stopping openbox + +# start on started graphtft-fe +# stop on stopping graphtft-fe + +env DISPLAY=:1.1 +export DISPLAY + +respawn + +script + +month=`date +%m` + +if [ $month -ge 11 ] || [ $month -le 2 ]; then + sleep 3 + if [ $month = 12 ]; then + exec /usr/games/xsnow -ssnowdepth 1 + else + exec /usr/games/xsnow -nosanta -norudolf -ssnowdepth 1 + fi +fi + +end script + |