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:
parent
d517ba721b
commit
63e9c1ba8f
@ -60,3 +60,11 @@ image/*; curl -s '%s' | convert - jpg:/tmp/rtv.jpg && img2txt -f utf8 /tmp/rtv.j
|
||||
# Ascii videos
|
||||
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
|
||||
|
||||
# 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;
|
||||
|
Loading…
Reference in New Issue
Block a user