aboutsummaryrefslogtreecommitdiffstats
path: root/nlay
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-03-19 05:32:16 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-03-19 06:17:58 +0530
commit8d7a56cbaaefd6afb688a2c186fed0df62af4918 (patch)
treeee6d4c22c446639b1300297f3dbfc04f36d2dfec /nlay
parent5624905803c0e64a0e2fa9caf433649eb6323e52 (diff)
downloadnnn-8d7a56cbaaefd6afb688a2c186fed0df62af4918.tar.gz
Run a custom script support
Diffstat (limited to 'nlay')
-rwxr-xr-xnlay10
1 files changed, 10 insertions, 0 deletions
diff --git a/nlay b/nlay
index f68d35c..23890b0 100755
--- a/nlay
+++ b/nlay
@@ -83,6 +83,16 @@ elif [ "$2" == "screensaver" ]; then
type -P $app &>/dev/null &&
eval $app $opts $bg
exit 0
+
+#------------------ SCRIPT ------------------
+elif [ "$2" == "script" ]; then
+ # add commands or a custom script below
+
+ # echo "my commands or custom script"
+ # sh "path_to_script.sh"
+ $SHELL "$1"
+
+ exit 0
fi
#----------------- RUN APP ------------------