From 8d7a56cbaaefd6afb688a2c186fed0df62af4918 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 19 Mar 2018 05:32:16 +0530 Subject: Run a custom script support --- nlay | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'nlay') 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 ------------------ -- cgit v1.3.1