💾 Archived View for ait.place › dot › tuir › .config › tuir › mailcap.txt captured on 2021-12-03 at 14:04:38.
-=-=-=-=-=-=-
# Example mailcap file for Terminal UI for Reddit # https://gitlab.com/ajak/tuir/ # # Copy the contents of this file to {HOME}/.mailcap, or point to it using $MAILCAPS # Then launch TUIR using the --enable-media flag. All shell commands defined in # this file depend on external programs that must be installed on your system. # # Mailcap 101 # - 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/x-imgur-album; feh -g 640x480 -. %s; test=test -n "$DISPLAY" image/gif; mpv --title="tuir" '%s' --loop=inf; test=test -n "$DISPLAY" image/*; feh -g 640x480 -. '%s'; test=test -n "$DISPLAY" video/x-youtube; mpv --ytdl-format=bestvideo+bestaudio/best '%s' ; test=test -n "$DISPLAY" video/*; mpv '%s' --loop=inf; test=test -n "$DISPLAY"