summaryrefslogtreecommitdiff
path: root/contrib/xsnow.conf
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-03-05 16:47:41 +0100
committerhorchi <vdr@jwendel.de>2017-03-05 16:47:41 +0100
commit22ffee20bbacbc3378e4ba0df5b7f0c3daaeffc0 (patch)
treede46c945c62d43d1febb027b5bfa075e58c5b69a /contrib/xsnow.conf
downloadvdr-plugin-graphtftng-22ffee20bbacbc3378e4ba0df5b7f0c3daaeffc0.tar.gz
vdr-plugin-graphtftng-22ffee20bbacbc3378e4ba0df5b7f0c3daaeffc0.tar.bz2
Diffstat (limited to 'contrib/xsnow.conf')
-rw-r--r--contrib/xsnow.conf29
1 files changed, 29 insertions, 0 deletions
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
+