larry77

my mailcap

Aug 24th, 2021
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. application/pdf; /usr/bin/evince '%s'
  2.  
  3. application/word; /usr/bin/libreoffice '%s'
  4. application/msword; /usr/bin/libreoffice '%s'
  5.  
  6. # see http://bit.ly/1whfEWE
  7.  
  8.  
  9. application/vnd.openxmlformats-officedocument.wordprocessingml.document; /usr/bin/libreoffice '%s'
  10.  
  11. application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; /usr/bin/gnumeric '%s'
  12.  
  13.  
  14.  
  15. application/vnd.msword; /usr/bin/libreoffice '%s'
  16.  
  17.  
  18.  
  19.  
  20. ###############################################################################
  21. #
  22. # MIME types and programs that process those types
  23. #
  24. ###############################################################################
  25. image/*; /usr/bin/ristretto '%s'; test=test -n "$DISPLAY"
  26.  
  27.  
  28.  
  29. # ##this is used when (v)iewing a text/html attachment:
  30. # ##allowing you to browse and "click" links
  31. # ##order matters the first entry which passes the test is used
  32. # #gui browser if $DISPLAY is set
  33. # text/html; firefox %s; test=test -n "$DISPLAY"; nametemplate=%s.html
  34.  
  35.  
  36.  
  37.  
  38. ## Use w3m for better html rendering
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. text/html; firefox '%s' & sleep 3; description=HTML Text; test=test -n "$DISPLAY"; nametemplate=%s.html
  47.  
  48. text/html; /usr/bin/w3m -cols 90 -dump -T text/html '%s'; copiousoutput
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
Add Comment
Please, Sign In to add comment