Code: mc.ext
shell/.php
Open=bluefish %f &
shell/.swf
Open=gflashplayer %f &
#iskompajliras netscape-flash sa gtk flag-om
### Images ###
type/^GIF
Include=image
type/^JPEG
Include=image
type/^PC\ bitmap
Include=image
type/^PNG
Include=image
type/^TIFF
Include=image
type/^PBM
Include=image
type/^PGM
Include=image
type/^PPM
Include=image
type/^Netpbm
Include=image
shell/.xpm
Include=image
include/image
Open=if [ "$DISPLAY" = "" ]; then fbi -qv %f *.*; else (find *.* -maxdepth 0 | qiv -fptn %f *.* &); fi
# fbi je za konzolu a qiv je ultra brz, za animated gif bi trebalo koristiti iv
### Sound files ###
regex/\.(wav|WAV|Wav|snd|SND|Snd|voc|VOC|Voc|au|AU|Au)$
Open=playsound %f
regex/\.(mp3|MP3|Mp3)$
Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi
View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
### Video tj. MPLAYER ###
regex/\.(avi|AVI|Avi)$
Include=video
regex/\.(asf|ASF|Asf)$
Include=video
regex/\.(divx|DIVX|DivX|Divx)$
Include=video
regex/\.(mov|MOV|Mov)$
Include=video
regex/\.(mp4|MP4|Mp4|mpeg|MPEG|Mpeg|mpg|mpa|Mpa|MPA|Mpg|MPG|mpe|Mpe|MP E)$
Include=video
regex/\.(vob|VOB|Vob)$
Include=video
regex/\.(wmv|WMV|Wmv)$
Include=video
regex/\.(rm|RM|Rm|ram|RAM|Ram)$
Include=video
include/video
Open=if [ "$DISPLAY" = "" ]; then mplayer -vo mga %f; else (mplayer -vo xmga %f >/dev/null 2>&1 &); fi
# ja koristim -vo mga i -vo xmga, ti koristi directfb i xv ili sta vec.
### Documents ###
# PDF
type/^PDF
Open=(acroread %f &)
# da, mnogo je brzi od svih ostalih
View=%view{ascii} pdftotext %f -
# html
regex/\.([Hh]tml?|HTML?)$
Open=links -g %f &
# links je odlican za brz pregled html-a
View=%view{ascii} lynx -dump -force_html %f
# Microsoft Word Document
regex/\.([Dd]o[ct]|DO[CT]|[Ww]ri|WRI)$
Open=(oowriter %f >/dev/null 2>&1 &)
type/^Microsoft\ Word
Open=(oowriter %f >/dev/null 2>&1 &)
# RTF document
regex/\.(rtf|RTF|Rtf)$
Open=(oowriter %f >/dev/null 2>&1 &)
type/^Microsoft\ Excel
Open=(oocalc %f >/dev/null 2>&1 &)
# Use OpenOffice.org to open any MS Office documents
type/^Microsoft\ Office\ Document
# naravno treba staviti taj openoffice