chonfig adjustment

This commit is contained in:
nova
2026-05-01 22:18:08 +02:00
parent 1711926003
commit b639ad3998

View File

@@ -2,8 +2,8 @@
#define SETTINGS_UEBERZUG_IMAGE_PREVIEW 1 /* 0 is disabled, 1 is enabled, 2 is with caching; depends on ueberzug */ #define SETTINGS_UEBERZUG_IMAGE_PREVIEW 1 /* 0 is disabled, 1 is enabled, 2 is with caching; depends on ueberzug */
#define SETTINGS_RELOAD_DIR_DELTA 10 /* 0 is disabled, time in seconds between automatic refresh of dir contents */ #define SETTINGS_RELOAD_DIR_DELTA 10 /* 0 is disabled, time in seconds between automatic refresh of dir contents */
#define SETTINGS_CURSES_TIMEOUT 100 /* read: inopts(3NCURSES), blocking time between user inputs */ #define SETTINGS_CURSES_TIMEOUT 100 /* read: inopts(3NCURSES), blocking time between user inputs */
#define SETTINGS_COMMAND_REPLACE_STR "%" /* if a command in any cmd inside this fle contains this string, it will be replaced with the hovered/selected file name #define SETTINGS_COMMAND_REPLACE_STR "^" /* if a command in any cmd inside this fle contains this string, it will be replaced with the hovered/selected file name
* as of right now, this character cannot be escaped; i.e ``command\% --arg`` will parse into ``command\path_of_hovered_file --arg``*/ * as of right now, this character cannot be escaped; i.e ``command\^ --arg`` will parse into ``command\path_of_hovered_file --arg``*/
/* {{{ */ /* {{{ */
#ifndef CONFIG_GUARD #ifndef CONFIG_GUARD
@@ -22,10 +22,10 @@ static const mimetype mimetype_default_cmd[] = {
* gives us "image/gif", thusly if we want to open gif in mpv rather than feh, * gives us "image/gif", thusly if we want to open gif in mpv rather than feh,
* we need to define "gif" before "image" */ * we need to define "gif" before "image" */
{ "text", "$EDITOR" }, { "text", "$EDITOR" },
{ "avif", "nohup mpv % >/dev/null 2>&1 &" }, { "avif", "nohup mpv ^ >/dev/null 2>&1 &" },
{ "gif", "nohup mpv --loop-file=\"inf\" % >/dev/null 2>&1 &" }, { "gif", "nohup mpv --loop-file=\"inf\" ^ >/dev/null 2>&1 &" },
{ "image", "feh % >/dev/null 2>&1 &" }, { "image", "feh ^ >/dev/null 2>&1 &" },
{ "video", "nohup mpv % >/dev/null 2>&1 &" }, { "video", "nohup mpv ^ >/dev/null 2>&1 &" },
{ "audio", "mpv" }, { "audio", "mpv" },
{ "pdf", "zathura" }, { "pdf", "zathura" },
}; };
@@ -34,8 +34,8 @@ static const extension file_extension_default_cmd[] = {
* similar to mimetype_default_cmd, however it searches for exact string matches * similar to mimetype_default_cmd, however it searches for exact string matches
* and is checked before mimetype_default_cmd */ * and is checked before mimetype_default_cmd */
{ ".exe", "wine"}, { ".exe", "wine"},
{ ".cbz", "mcomix % &"}, { ".cbz", "mcomix ^ &"},
{ ".cbr", "mcomix % &"}, { ".cbr", "mcomix ^ &"},
{ ".json", "$EDITOR"}, { ".json", "$EDITOR"},
{ ".csv", "$EDITOR"}, { ".csv", "$EDITOR"},
{ ".blend", "blender-bin-5.0.0"}, /* version number in bin in main repo? yea idc */ { ".blend", "blender-bin-5.0.0"}, /* version number in bin in main repo? yea idc */