nlay
—
a bash script to play files in different apps by file
type or run some actions.
nlay |
file/path type/action |
nlay
is shipped with
nnn to deliver a
level of flexibility to users to choose their own apps when running some
actions, run some commands or custom scripts. It has provisions to handle text
files too. However, the capability is not used in the latest releases. Now
nlay
is invoked to run a desktop search (
gnome-search-tool or
catfish) or screen locker (
vlock or
bashlock or
lock) utility. However,
nlay
can run independently and can be
highly customized for personal usage.
nlay
supports the following options:
"file/path"
The first argument can be the file or path to pass as an argument to the app.
It can also be an empty string e.g., while locking the terminal.
"type/action"
This can be any of the strings
text,
search,
script or
screensaver.
$ nlay info.txt text
$ nlay . search
$ nlay ~/script.sh script
$ nlay "" screensaver
Arun Prakash Jana
<
engineerarun@gmail.com>.
https://github.com/jarun/nnn