From f051f82ecdfc479a554796706408dd9744ff7a78 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 23 Sep 2015 01:27:28 +0200 Subject: added newfile script for dropnroll --- contrib/newfile.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 contrib/newfile.sh diff --git a/contrib/newfile.sh b/contrib/newfile.sh new file mode 100755 index 0000000..798e25d --- /dev/null +++ b/contrib/newfile.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +DIR=$1 +FILENAME=$2 +SIZE=$3 + +if [ -z "$FILENAME" ]; then + exit 1; +fi + +export DISPLAY=':0.0' +export XAUTHORITY='/home/equinox/.Xauthority' + +exec klokdisplay "$DIR/$FILENAME" -- cgit v1.2.3