mirror of
https://github.com/jarun/nnn.git
synced 2025-03-18 20:39:45 +00:00
Add widely available cmatrix as locker fallback
This commit is contained in:
parent
32b3445f3b
commit
aa56b99326
2 changed files with 4 additions and 4 deletions
|
@ -133,7 +133,7 @@ It runs on Linux, macOS, Raspberry Pi, BSD, Cygwin, Linux subsystem for Windows
|
||||||
| mediainfo / exiftool | if needed | multimedia file details |
|
| mediainfo / exiftool | if needed | multimedia file details |
|
||||||
| trash-cli | optional | trash files (default action: delete) |
|
| trash-cli | optional | trash files (default action: delete) |
|
||||||
| sshfs, fusermount(3) | if needed | mount, unmount over SSHFS |
|
| sshfs, fusermount(3) | if needed | mount, unmount over SSHFS |
|
||||||
| vlock (Linux), bashlock (macOS), lock(1) (BSD) | optional | terminal locker (fallback: [pipes.sh](https://github.com/pipeseroni/pipes.sh)) |
|
| vlock (Linux), bashlock (macOS), lock(1) (BSD) | optional | terminal locker (fallback: [cmatrix](https://github.com/abishekvashok/cmatrix)) |
|
||||||
| advcpmv (Linux) ([integration](https://github.com/jarun/nnn/wiki/hacking-nnn#show-cp-mv-progress)) | optional | copy, move progress |
|
| advcpmv (Linux) ([integration](https://github.com/jarun/nnn/wiki/hacking-nnn#show-cp-mv-progress)) | optional | copy, move progress |
|
||||||
| `$VISUAL` (else `$EDITOR`), `$PAGER`, `$SHELL` | optional | fallback vi, less, sh |
|
| `$VISUAL` (else `$EDITOR`), `$PAGER`, `$SHELL` | optional | fallback vi, less, sh |
|
||||||
|
|
||||||
|
|
|
@ -334,7 +334,7 @@ static char g_tmpfpath[TMP_LEN_MAX] __attribute__ ((aligned));
|
||||||
#define ATOOL 3
|
#define ATOOL 3
|
||||||
#define BSDTAR 4
|
#define BSDTAR 4
|
||||||
#define LOCKER 5
|
#define LOCKER 5
|
||||||
#define PIPES 6
|
#define CMATRIX 6
|
||||||
#define NLAUNCH 7
|
#define NLAUNCH 7
|
||||||
#define UNKNOWN 8
|
#define UNKNOWN 8
|
||||||
|
|
||||||
|
@ -358,7 +358,7 @@ static char * const utils[] = {
|
||||||
#else
|
#else
|
||||||
"vlock",
|
"vlock",
|
||||||
#endif
|
#endif
|
||||||
"pipes.sh",
|
"cmatrix",
|
||||||
"nlaunch",
|
"nlaunch",
|
||||||
"UNKNOWN"
|
"UNKNOWN"
|
||||||
};
|
};
|
||||||
|
@ -2627,7 +2627,7 @@ static void lock_terminal(void)
|
||||||
{
|
{
|
||||||
char *tmp = utils[LOCKER];
|
char *tmp = utils[LOCKER];
|
||||||
if (!getutil(tmp))
|
if (!getutil(tmp))
|
||||||
tmp = utils[PIPES];;
|
tmp = utils[CMATRIX];;
|
||||||
|
|
||||||
spawn(tmp, NULL, NULL, NULL, F_NORMAL);
|
spawn(tmp, NULL, NULL, NULL, F_NORMAL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue