added more default commands
This commit is contained in:
16
config.h
16
config.h
@ -2,10 +2,18 @@
|
|||||||
#include "interactions.h"
|
#include "interactions.h"
|
||||||
|
|
||||||
static mimetype mimetype_default_cmd[] = {
|
static mimetype mimetype_default_cmd[] = {
|
||||||
/* mimetype shell command */
|
/* mimetype shell command
|
||||||
{ "text", "$EDITOR" },
|
* ^ substring of "file --mime-type -b ./hovered"
|
||||||
{ "image", "feh" },
|
* this does mean that this list is checked for completely linear.
|
||||||
{ "video", "mpv" }
|
* 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[] = {
|
static binding key_binding[] = {
|
||||||
|
Reference in New Issue
Block a user