1
0
mirror of https://github.com/alrayyes/server-dotfiles synced 2023-11-14 15:56:25 +00:00

handle pdf & html

This commit is contained in:
Ryan 2017-07-06 21:19:48 +02:00
parent d517ba721b
commit 63e9c1ba8f

View File

@ -60,3 +60,11 @@ image/*; curl -s '%s' | convert - jpg:/tmp/rtv.jpg && img2txt -f utf8 /tmp/rtv.j
# Ascii videos # Ascii videos
video/x-youtube; youtube-dl -q -o - '%s' | mplayer -cache 8192 -vo caca -quiet -; needsterminal video/x-youtube; youtube-dl -q -o - '%s' | mplayer -cache 8192 -vo caca -quiet -; needsterminal
video/*; wget '%s' -O - | mplayer -cache 8192 -vo caca -quiet -; needsterminal video/*; wget '%s' -O - | mplayer -cache 8192 -vo caca -quiet -; needsterminal
# Pdf
application/pdf;mupdf '%s'; test=test -n "$DISPLAY"
application/pdf;pdftotext '%s'; copiousoutput
# html
text/html; mv %s %s.html && qutebrowser %s.html >/dev/null 2>/dev/null; needsterminal;
text/html; w3m -I %{charset} -T text/html; copiousoutput;