dgy
/
hexagons
Archived
1
0
Fork 0
This repository has been archived on 2021-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
hexagons/.config/mutt/mailcap

18 lines
901 B
Plaintext

# - 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;