-
Notifications
You must be signed in to change notification settings - Fork 9
/
.mailcap
34 lines (26 loc) · 1.65 KB
/
.mailcap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
image/x-xcf; gimp -- "%s"; test=test "${DISPLAY:-$WAYLAND_DISPLAY}"
image/*; mpv -- "%s"; test=test "${DISPLAY:-$WAYLAND_DISPLAY}"; x-url
image/*; mpv --vo=tct -- "%s"; needsterminal; x-url
video/*; mpv --force-window=immediate -- "%s"; test=test "${DISPLAY:-$WAYLAND_DISPLAY}"; x-url
application/vnd.rn-realmedia; mpv --force-window=immediate -- "%s"; test=test "${DISPLAY:-$WAYLAND_DISPLAY}"; x-url
video/*; mpv --vo=tct -- "%s"; needsterminal; x-url
audio/*; mpv -- "%s"; needsterminal; x-url
application/octet-stream; mpv -- "%s"; needsterminal; x-url
application/pdf; zathura "%s"; test=test "${DISPLAY:-$WAYLAND_DISPLAY}"
application/vnc.comicbook-rar; zathura "%s"; test=test "${DISPLAY:-$WAYLAND_DISPLAY}"
application/vnd.comicbook+zip; zathura "%s"; test=test "${DISPLAY:-$WAYLAND_DISPLAY}"
application/oxps; zathura "%s"; test=test "${DISPLAY:-$WAYLAND_DISPLAY}"
application/epub+zip; zathura "%s"; test=test "${DISPLAY:-$WAYLAND_DISPLAY}"
# doesn't actually view the pdf, just converts it to text and drops it into the
# same directory.
application/pdf; pdftotext -layout -nopgbrk "%s"
# pup does a better job fixing the html than w3m
text/html; pup --charset utf-8 < "%s" | w3m -T "%t"; needsterminal; test=command -v pup
application/xhtml+xml; pup < "%s" | w3m -T "%t"; needsterminal; test=command -v pup
# ...but something is better than nothing
text/html; w3m "%s" -T "%t"; needsterminal; x-url
application/xhtml+xml; w3m "%s" -T "%t"; needsterminal; x-url
text/x-osu-beatmap; oshu --pause "%s"; needsterminal; test=test "${DISPLAY:-$WAYLAND_DISPLAY}"
application/json; vim "%s"; needsterminal
inode/x-empty; vim "%s"; needsterminal
text/*; vim "%s"; needsterminal