# - The first entry with a matching MIME type will be executed, * is a wildcard # - %s will be replaced with the image or video url # - Add ``test=test -n "$DISPLAY"`` if your command opens a new window # - Add ``needsterminal`` for commands that use the terminal # - Add ``copiousoutput`` for commands that dump text to stdout image/gif; sxiv-gif %s; test=test -n "$DISPLAY" image/*; sxiv-rifle %s; test=test -n "$DISPLAY" video/*; setsid mpv --quiet %s & disown; test=test -n "$DISPLAY"; copiousoutput audio/*; setsid mpv --quiet %s & disown; test=test -n "$DISPLAY"; copiousoutput application/pdf; zathura %s & disown; test=test -n "$DISPLAY" # Autoview html text/plain; $EDITOR %s ; text/html; openfile %s ; nametemplate=%s.html text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 dump %s; nametemplate=%s.html; copiousoutput application/pgp-encrypted; gpg -d '%s'; copiousoutput;