aboutsummaryrefslogtreecommitdiffstats
path: root/nlay
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-09-06 19:42:02 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-09-06 19:51:30 +0530
commit776c94a74481c6b67e0f62327eb41374fe353207 (patch)
tree4c51cbc85251cf4059099de8beb53a565a32bce4 /nlay
parent028e04abd35d2c306b27b445e4be59329f57d88f (diff)
downloadnnn-776c94a74481c6b67e0f62327eb41374fe353207.tar.gz
Integrate bashlock and lock
Diffstat (limited to 'nlay')
-rwxr-xr-xnlay15
1 files changed, 8 insertions, 7 deletions
diff --git a/nlay b/nlay
index 23890b0..1930379 100755
--- a/nlay
+++ b/nlay
@@ -74,15 +74,16 @@ elif [ "$2" == "search" ]; then
#--------------- SCREENSAVER ----------------
elif [ "$2" == "screensaver" ]; then
- app=vlock
+ app=("vlock"
+ "bashlock"
+ "lock")
- #opts=
-
- #bg=">/dev/null 2>&1 &"
-
- type -P $app &>/dev/null &&
- eval $app $opts $bg
+for index in ${!app[@]}
+do
+ type -P ${app[$index]} &>/dev/null &&
+ eval ${app[$index]} &&
exit 0
+done
#------------------ SCRIPT ------------------
elif [ "$2" == "script" ]; then