--- config.def.h.orig 2021-07-30 17:36:16.000000000 +0900 +++ config.def.h 2022-02-22 19:07:08.161691880 +0900 @@ -1,9 +1,9 @@ /* See LICENSE file for copyright and license details. */ -#define CWD "cwd: " -#define CURSR " > " +#define CWD " " +#define CURSR "> " #define EMPTY " " -int dirorder = 0; /* Set to 1 to sort by directory first */ +int dirorder = 1; /* Set to 1 to sort by directory first */ int mtimeorder = 0; /* Set to 1 to sort by time modified */ int icaseorder = 0; /* Set to 1 to sort by ignoring case */ int idletimeout = 0; /* Screensaver timeout in seconds, 0 to disable */ @@ -32,12 +32,12 @@ }; struct assoc assocs[] = { - { "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", "mpv" }, - { "\\.(png|jpg|gif)$", "sxiv" }, - { "\\.(html|svg)$", "firefox" }, + { "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", "mplayer" }, + { "\\.(png|jpg|jpeg|gif)$", "imgcmd" }, + { "\\.(svg)$", "firefox" }, { "\\.pdf$", "mupdf" }, { "\\.sh$", "sh" }, - { ".", "less" }, + { ".", "editcmd" }, }; struct key bindings[] = { @@ -91,9 +91,6 @@ { 'i', SEL_ICASE }, { CONTROL('L'), SEL_REDRAW }, /* Run command */ - { 'z', SEL_RUN, "top" }, - { '!', SEL_RUN, "sh", "SHELL" }, - /* Run command with argument */ - { 'e', SEL_RUNARG, "vi", "EDITOR" }, - { 'p', SEL_RUNARG, "less", "PAGER" }, + { 'g', SEL_RUN, "gridcmd" }, + { '!', SEL_RUN, "termcmd" }, };