💾 Archived View for ait.place › dot › tuir › .config › tuir › mailcap.txt captured on 2022-01-08 at 14:23:51.
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
# 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"