X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.mailcap;h=1a2074a73ab3a1b076c113e6a367318115467661;hb=67e3500b6d36bfaa9da2835fb141e8dd24ff20a9;hp=aa3f968214c75d11107acd288c080b387b71541e;hpb=54ae58d0e2b74f337ddf10805aff6de07bd5e798;p=dotfiles.git diff --git a/.mailcap b/.mailcap index aa3f968..1a2074a 100644 --- a/.mailcap +++ b/.mailcap @@ -31,6 +31,8 @@ application/msword; doc2html2 %s; copiousoutput; description="M$ Word Text"; tes application/msword; catdoc %s; copiousoutput; description="M$ Word Text"; test=test -n "`which catdoc 2>/dev/null`" application/msword; wordview %s; edit=libreoffice %s; description="M$ Word Text"; test=test -n "$DISPLAY" -a -n "`which wordview 2>/dev/null`" application/vnd.ms-excel; xls2csv %s; copiousoutput; description="M$ Excel files"; test=test -n "`which xls2csv 2>/dev/null`" +application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s - | iconv -f utf-8 | less; edit=libreoffice %s; needsterminal; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`" -a -n "`which iconv 2>/dev/null`" -a -n "`which less 2>/dev/null`" +application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s - | more; needsterminal; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`" application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s -; copiousoutput; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`" audio/mpeg; audtool --playlist-clear --playlist-addurl %s --playback-play; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`which audtool 2>/dev/null`" && test "`audtool --get-volume`" -gt 0