diff -r 7970a5d63d57 -r 0d7678e65dfa .mc/bindings --- a/.mc/bindings Sat Feb 04 20:21:43 2012 +0200 +++ b/.mc/bindings Sat Feb 04 20:25:30 2012 +0200 @@ -356,29 +356,21 @@ ### Sound files ### regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$ - Open=run-mailcap audio/x-wav:%f - #Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms -e %f 1>/dev/null 2>&1 &); fi + Open=run-mailcap audio/x-wav:%f & regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$ - Open=run-mailcap application/x-mod:%f - #Open=mikmod %f - #Open=tracker %f - -regex/\.([wW][aA][wW]22)$ - Open=vplay -s 22 %f + Open=run-mailcap application/x-mod:%f & regex/\.([mM][pP]3)$ - Open=run-mailcap audio/mpeg:%f - #Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi + Open=run-mailcap audio/mpeg:%f & View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/Title:/,/Comment:/p;/^MPEG/,/^Audio/p' regex/\.([oO][gG][gG])$ Open=run-mailcap application/x-ogg:%f & - #Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi View=%view{ascii} ogginfo %s regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$ - Open=run-mailcap audio/midi:%f + Open=run-mailcap audio/midi:%f & #Open=timidity %f regex/\.([wW][mM][aA])$ @@ -419,7 +411,7 @@ Include=video regex/\.([rR][aA]?[mM])$ - Open=run-mailcap audio/x-pn-realaudio:%f + Open=run-mailcap audio/x-pn-realaudio:%f & #Open=(realplay %f >/dev/null 2>&1 &) include/video @@ -433,13 +425,12 @@ # Postscript type/^PostScript - Open=run-mailcap application/postscript:%f + Open=run-mailcap application/postscript:%f & #Open=(gv %f &) View=%view{ascii} ps2ascii %f # PDF type/^PDF -# Open=run-mailcap application/pdf:%f 1>/dev/null 2>&1 & Open=run-mailcap application/pdf:%f 2>/dev/null & #Open=(xpdf %f &) #Open=(acroread %f &) @@ -462,8 +453,7 @@ # html regex/\.([hH][tT][mM][lL]?)$ - Open=run-mailcap text/html:%f - #Open=(if test -n "" && test -n "$DISPLAY"; then ( file://%d/%p &) 1>&2; else links %f || lynx -force_html %f || ${PAGER:-more} %f; fi) 2>/dev/null + Open=run-mailcap text/html:%f & View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f # StarOffice 5.2 @@ -481,8 +471,7 @@ # Microsoft Word Document regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$ - Open=run-mailcap application/msword:%f - #Open=(abiword %f >/dev/null 2>&1 &) + Open=run-mailcap application/msword:%f & View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f type/^Microsoft\ Word Open=(abiword %f >/dev/null 2>&1 &) @@ -490,7 +479,7 @@ # RTF document regex/\.([rR][tT][fF])$ - Open=run-mailcap text/rtf:%f + Open=run-mailcap text/rtf:%f & #Open=(abiword %f >/dev/null 2>&1 &) # Microsoft Excel Worksheet