added more default commands

This commit is contained in:
nova
2025-06-23 23:03:54 +02:00
parent c29870998e
commit 1a68fee59c

View File

@ -2,10 +2,18 @@
#include "interactions.h"
static mimetype mimetype_default_cmd[] = {
/* mimetype shell command */
{ "text", "$EDITOR" },
{ "image", "feh" },
{ "video", "mpv" }
/* mimetype shell command
* ^ substring of "file --mime-type -b ./hovered"
* this does mean that this list is checked for completely linear.
* Example:
* file --mime-type -b ./image.gif
* gives us "image/gif", thusly if we want to open gif in mpv rather than feh,
* we need to define "gif" before "image" */
{ "text", "$EDITOR" },
{ "gif", "mpv --loop-file=\"inf\"" },
{ "image", "feh" },
{ "video", "mpv" },
{ "audio", "mpv" }
};
static binding key_binding[] = {