diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-09-06 19:42:02 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-09-06 19:51:30 +0530 |
commit | 776c94a74481c6b67e0f62327eb41374fe353207 (patch) | |
tree | 4c51cbc85251cf4059099de8beb53a565a32bce4 /nlay | |
parent | 028e04abd35d2c306b27b445e4be59329f57d88f (diff) | |
download | nnn-776c94a74481c6b67e0f62327eb41374fe353207.tar.gz |
Integrate bashlock and lock
Diffstat (limited to 'nlay')
-rwxr-xr-x | nlay | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -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 |