You are not logged in.

#1 2009-04-15 05:00:56

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

[solved] getting Feh to open as default picture viewer (...from mc)

This may seem like a complete newbie question (which I guess it is) but I can't for the life of me get feh (picture viewer) to open from MC (midnight commander) unless I manually type it, and then (because I'm rather new to the CLI life - as well as using ScrotWM, which I've yet to fully configure) it opens up in the same terminal I had MC running, thus killing it with feh.

With video files I simply click on them and they open in a floating window with mplayer. Nothing happens with picture files, I can click and click and nothing happens, unless I type it in like I said before. Anyway, I was just wondering if there was some global default configuration file where I can possibly change this. I downloaded PCManFM solely for the reason of "Use this as default" when I open pictures. It still doesn't work in MC after setting it as default with PCManFM. Not the same configuration?

I'm also dealing with getting ScrotWM to open certain programs (or instances) in floating-mode. But that's for another google/mailing list/arch forum search. I can't believe I couldn't find something on getting feh as default for MC. Makes me feel silly. Oh well, heh.

Any help or positive input is welcome. Thank you smile

EDIT: Got it. See below.

Last edited by milomouse (2009-04-15 19:24:45)

Offline

#2 2009-04-15 06:48:46

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: [solved] getting Feh to open as default picture viewer (...from mc)

Look in mc's command menu, and edit the extension file.

Offline

#3 2009-04-15 07:07:55

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [solved] getting Feh to open as default picture viewer (...from mc)

Look in /usr/share/mc/mc.ext, that's where the image viewer is set - and yes, it is completely separate from pcmanfm's config. You may be able to copy this file to ~/.mc/ and edit it there - I haven't felt the need to try this myself.

<edit>hehe.. ignore me, and do what pauldonnelly says. smile

Offline

#4 2009-04-15 10:47:37

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: [solved] getting Feh to open as default picture viewer (...from mc)

"bindings" file is what you want to edit...

# Midnight Commander 3.0 extension file
# Warning: Structure of this file has changed completely with version 3.0
#
# All lines starting with # or empty lines are thrown away.
# Lines starting in the first column should have following format:
#
# keyword/descNL, i.e. everything after keyword/ until new line is desc
#
# keyword can be: 
#
#    shell (desc is, when starting with a dot, any extension (no wildcars), 
#          i.e. matches all the files *desc . Example: .tar matches *.tar;
#          if it doesn't start with a dot, it matches only a file of that name)
#
#    regex (desc is an extended regular expression)
#          Please note that we are using the GNU regex library and thus
#          \| matches the literal | and | has special meaning (or) and
#          () have special meaning and \( \) stand for literal ( ).
#
#    type  (file matches this if `file %f` matches regular expression desc
#          (the filename: part from `file %f` is removed))
#
#    directory (matches any directory matching regular expression desc)
#
#    include (matches an include directive)
#
#    default (matches any file no matter what desc is)
#
# Other lines should start with a space or tab and should be in the format:
#
# keyword=commandNL (with no spaces around =), where keyword should be: 
#
#    Open (if the user presses Enter or doubleclicks it), 
#
#    View (F3), Edit (F4)
#
#    Include is the keyword used to add any further entries from an include/
#    section
#
# command is any one-line shell command, with the following substitutions:
#
# %% -> % character
# %p -> name of the current file (without path, but pwd is its path)
# %f -> name of the current file. Unlike %p, if file is located on a 
#    non-local virtual filesystem, i.e. either tarfs, mcfs or ftpfs,
#    then the file will be temporarily copied into a local directory
#    and %f will be the full path to this local temporal file.
#    If you don't want to get a local copy and want to get the
#    virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
#    use %d/%p instead of %f.
# %d -> name of the current directory (pwd, without trailing slash)
# %s -> "selected files", i.e. space separated list of tagged files if any
#       or name of the current file
# %t -> list of tagged files
# %u -> list of tagged files (they'll be untaged after the command)
#
# (If these 6 letters are in uppercase, they refer to the other panel.
# But you shouldn't have to use it in this file.)
#
#
# %cd -> the rest is a path mc should change into (cd won't work, since it's
#    a child process).  %cd handles even vfs names.
#
# %view -> the command you type will be piped into mc's internal file viewer
#    if you type only the %view and no command, viewer will load %f file
#    instead (i.e. no piping, so it is different to %view cat %f)
#    %view may be directly followed by {} with a list of any of
#    ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
#    text using backspace for bold and underscore) and unform
#    (no highlighting for nroff sequences) separated by commas.
#
# %var -> You use it like this: %var{VAR:default}.  This macro will expand
#       to the value of the VAR variable in the environment if it's set
#       otherwise the value in default will be used.  This is similar to
#       the Bourne shell ${VAR-default} construct.
#
# Rules are applied from top to bottom, thus the order is important.
# If some actions are missing, search continues as if this target didn't
# match (i.e. if a file matches the first and second entry and View action
# is missing in the first one, then on pressing F3 the View action from
# the second entry will be used. default should catch all the actions.
#
# Any new entries you develop for you are always welcome if they are
# useful on more than one system.  You can send your modifications
# by e-mail to mc-devel@gnome.org


### Changes ###
#
# Reorganization: 2000-05-01 Michal Svec <rebel@penguin.cz>


### TODO ###
#
# Postscript    Open: ps2svga [gs -DEVICE=jpeg|zgv or something]
# Images        asciiview
# 
# All X Apps    [Nothing/Warning] if no DISPLAY
# Not found    [Default/Warning]
# Empty Output    [Default/Warning]
# Edit:        CopyOut+EDIT+CopyIn
# Security    Check gzip/bzip EDIT (mktemp)
# 
# Maybe:    Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc.


### Archives ###

# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z
regex/\.t([gp]?z|ar\.g?[zZ])$
    Open=%cd %p#utar
    View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -

regex/\.tar\.bz$
    # Open=%cd %p#utar
    View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf -

regex/\.t(ar\.bz2|bz|b2)$
    Open=%cd %p#utar
    View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf -

# .tar.F - used in QNX
regex/\.tar\.F$
    # Open=%cd %p#utar
    View=%view{ascii} freeze -dc %f 2>/dev/null | tar tvvf -

# .qpr/.qpk - QNX Neutrino package installer files 
regex/\.(qp[rk])$
    Open=%cd %p#utar
    View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -

# tar
regex/\.(tar|TAR)$
    Open=%cd %p#utar
    View=%view{ascii} tar tvvf %f

# lha
type/^LHa\ .*archive
    Open=%cd %p#ulha
    View=%view{ascii} lha l %f

# arj
regex/\.a(rj|[0-9][0-9])$
    Open=%cd %p#uarj
    View=%view{ascii} unarj l %f

# ha
regex/\.([Hh][Aa])$
    Open=%cd %p#uha
    View=%view{ascii} ha lf %f

# rar
regex/\.[rR]([aA][rR]|[0-9][0-9])$
    Open=%cd %p#urar
    View=%view{ascii} rar v -c- %f

# cpio
shell/.cpio.Z
    Open=%cd %p#ucpio
    View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null

shell/.cpio.gz
    Open=%cd %p#ucpio
    View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null

shell/.cpio
    Open=%cd %p#ucpio
    View=%view{ascii} cpio -itv <'%f' 2>/dev/null

# ls-lR
regex/(^|\.)ls-?lR(\.g?z|Z|bz2)?$
    Open=%cd %p#lslR

# patch
regex/\.(diff|patch)(\.(bz2|gz|Z))?$
        Open=%cd %p#patchfs

# ar library
regex/\.s?a$
    Open=%cd %p#uar
    #Open=%view{ascii} ar tv %f
    View=%view{ascii} file %f && nm %f

# trpm
regex/\.trpm$
    Open=%cd %p#trpm
    View=%view{ascii} rpm -qivl --scripts `basename %p .trpm`

# RPM packages (SuSE uses *.spm for source packages)
regex/\.(rpm|spm)$
    Open=%cd %p#rpm
    View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f

# deb
regex/\.u?deb$
    Open=%cd %p#deb
    View=%view{ascii} dpkg-deb -c %f

# ISO9660
regex/\.iso$
    Open=%cd %p#iso9660
    View=%view{ascii} isoinfo -l -i %f

# 7zip archives (they are not man pages)
shell/.7z
    View=%view{ascii} 7za l %f 2>/dev/null


### Sources ###

# C
shell/.c
    Open=%var{EDITOR:vi} %f

# Fortran
shell/.f
    Open=%var{EDITOR:vi} %f
    
# Header
regex/\.(h|hpp)$
    Open=%var{EDITOR:vi} %f

# Object
shell/.o
    #Open=%var{PAGER:more} %f
    View=%view{ascii} file %f && nm %f

# Asm
shell/.s
    Open=%var{EDITOR:vi} %f

# C++
regex/\.(C|cc|cpp)$
    Open=%var{EDITOR:vi} %f


### Documentation ###

# Texinfo
regex/\.(te?xi|texinfo)$

# GNU Info page
type/^Info\ text
    Open=info -f %f

shell/.info
    Open=info -f %f

# Manual page
# Exception - .so libraries are not manual pages
regex/\.(so|so\.[0-9\.]*)$
    View=%view{ascii} file %f && nm %f

regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
    Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff -c -Tlatin1 -mandoc %f ;; esac | %var{PAGER:more}
    View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff -c -Tlatin1 -mandoc %f ;; esac

# Troff with me macros.
# Exception - "read.me" is not a nroff file.
shell/read.me
    Open=
    View=

shell/.me
    Open=nroff -c -Tlatin1 -me %f | %var{PAGER:more}
    View=%view{ascii,nroff} nroff -c -Tlatin1 -me %f

# Troff with ms macros.
shell/.ms
    Open=nroff -c -Tlatin1 -ms %f | %var{PAGER:more}
    View=%view{ascii,nroff} nroff -c -Tlatin1 -ms %f

# Manual page - compressed
regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
    Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
    View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac

regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
    Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
    View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac

regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
    Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
    View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -c -Tlatin1 -mandoc ;; esac


### Images ###

regex/\.([gG][iI][fF])$
        Include=image

regex/\.([jJ][pP][gG])$
        Include=image

regex/\.([jJ][pP][eE][gG])$
        Include=image

regex/\.([pP][nN][gG])$
        Include=image

regex/\.([tT][iI][fF][fF])$
        Include=image

regex/\.([pP][pP][mM])$
        Include=image

regex/\.([xX][pP][mM])$
        Include=image

shell/.xcf
    Open=gimp %f

shell/.xbm
    Open=bitmap %f

include/image
    Open=feh %f
#    Open=if [ "$DISPLAY" = "" ]; then feh %f; else feh %; fi
    View=gqview %f
    #View=%view{ascii} asciiview %f

### Vector Images ###

regex/\.([sS][vV][gG])$
        Include=vector

include/vector
        Open=svgview %f

### Sound files ###

regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD]|[mM][pP]3|[fF][lL][aA][cC]|[wW][mM][aA]|[oO][gG][gG])$
    Open=urxvtc -e mplayer %f
#       Open=if [ "$DISPLAY" = "" ]; then mplayer -e %f; fi

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=mikmod %f
       #Open=tracker %f

regex/\.([wW][aA][wW]22)$
       Open=vplay -s 22 %f

#regex/\.([mM][pP]3)$
#    Open=if [ "$DISPLAY" = "" ]; then mplayer -e %f; else (then mpg123 %f); fi
#    View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'

#regex/\.([oO][gG][gG])$
#    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=timidity %f

#regex/\.([wW][mM][aA])$
#    Open=mplayer -vo null %f
#    View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f


### Play lists ###

regex/\.([mM]3[uU]|[pP][lL][sS])$
    Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f &); fi


### Video ###

regex/\.([aA][vV][iI])$
    Include=video

regex/\.([aA][sS][fFxX])$
    Include=video

regex/\.([dD][iI][vV][xX])$
    Include=video

regex/\.([mM][oO][vV]|[qQ][tT])$
    Include=video

regex/\.([mM][pP]4|[mM][pP][eE]?[gG]|[tT][sS])$
    Include=video

regex/\.([vV][oO][bB])$
    Include=video

regex/\.([wW][mM][vV])$
    Include=video

regex/\.([oO][gG][mM])$
    Include=video

regex/\.([rR][aA]?[mM])$
    Include=video

regex/\.([mM][kK][vV])$
    Include=video

regex/\.([fF][lL][vV])$
        Include=video

include/video
    Open=(mplayer %f >/dev/null 2>&1 &)
    #Open=(gtv %f >/dev/null 2>&1 &)
    #Open=(xanim %f >/dev/null 2>&1 &)


### Documents ###

# Postscript
type/^PostScript
    Open=(gv %f &)
    View=%view{ascii} ps2ascii %f

# PDF
type/^PDF
    Open=(urxvtc -e apvlv %f &)
    #Open=(acroread %f &)
    #Open=(ghostview %f &)
    View=%view{ascii} pdftotext %f -

# The following code very ugly and should not be taken as example.
# It should be cleaned up when the new format of mc.ext is developed.

# html
regex/\.([hH][tT][mM][lL]?)$
    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
    View=%view{ascii} lynx -dump -force_html %f

# StarOffice 5.2
shell/.sdw
    Open=(ooffice %f &)

# StarOffice 6 and OpenOffice.org formats
regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
    Open=(ooffice %f &)
    View=%view{ascii} unzip -p %f content.xml | o3totxt

# AbiWord
shell/.abw
    Open=(abiword %f &)

# Microsoft Word Document
regex/\.([Dd][oO][cC]?[tT]|[Ww][rR][iI])$
    Open=urxvtc -e viewword %f
#    Open=(abiword %f >/dev/null 2>&1 &)
#    View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
type/^Microsoft\ Word
        Open=urxvtc -e viewword %f
#    Open=(abiword %f >/dev/null 2>&1 &)
    View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f

# RTF document
regex/\.([rR][tT][fF])$
        Open=viewword %f
#    Open=(abiword %f >/dev/null 2>&1 &)

# Microsoft Excel Worksheet
regex/\.([xX][lL][sSwW])$
    Open=(gnumeric %f >/dev/null 2>&1 &)
    View=%view{ascii} xls2csv %f || strings %f
type/^Microsoft\ Excel
    Open=(gnumeric %f >/dev/null 2>&1 &)
    View=%view{ascii} xls2csv %f || strings %f

# Use OpenOffice.org to open any MS Office documents
type/^Microsoft\ Office\ Document
    Open=(ooffice %f &)

# Framemaker
type/^FrameMaker
    Open=fmclient -f %f

# DVI
regex/\.([dD][vV][iI])$
    Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
    View=%view{ascii} dvi2tty %f

# TeX
regex/\.([Tt][Ee][Xx])$
    Open=%var{EDITOR:vi} %f


### Miscellaneous ###

# Makefile
regex/[Mm]akefile$
    Open=make -f %f %{Enter parameters}

# Imakefile
shell/Imakefile
    Open=xmkmf -a

# Makefile.PL (MakeMaker)
regex/^Makefile.(PL|pl)$
    Open=%var{PERL:perl} %f

# dbf
regex/\.([dD][bB][fF])$
       Open=%view{ascii} dbview %f
       View=%view{ascii} dbview -b %f

# REXX script
regex/\.(rexx?|cmd)$
       Open=rexx %f %{Enter parameters};echo "Press ENTER";read y


### Plain compressed files ###

# zip
type/^([Zz][Ii][Pp])\ archive
    Open=%cd %p#uzip
    View=%view{ascii} unzip -v %f

# zoo
regex/\.([Zz][Oo][Oo])$
    Open=%cd %p#uzoo
    View=%view{ascii} zoo l %f
    
# gzip
type/^gzip
    Open=gzip -dc %f | %var{PAGER:more}
    View=%view{ascii} gzip -dc %f 2>/dev/null

# bzip2
type/^bzip2
    Open=bzip2 -dc %f | %var{PAGER:more}
    View=%view{ascii} bzip2 -dc %f 2>/dev/null

# bzip
type/^bzip
    Open=bzip -dc %f | %var{PAGER:more}
    View=%view{ascii} bzip -dc %f 2>/dev/null

# compress
type/^compress
    Open=gzip -dc %f | %var{PAGER:more}
    View=%view{ascii} gzip -dc %f 2>/dev/null


### Default ###

# Default target for anything not described above
default/*
    Open=
    View=


### EOF ###

my menu file

shell_patterns=0
+ ! t t
@       Do something on the current file
    CMD=%{Enter command}
    $CMD %f

7       compress to 7zip (dir27z)
        urxvtc -e dir27z %f &

@       compress file to zip (file2zip)
        urxvtc -e file2zip %f &

@       compress dir to zip (dir2zip)
        urxvtc -e dir2zip %f &

@       dir to iso (mkisofs -V volume_name -J -r -o isoimage.iso)
        urxvtc -e mkisofs -V NEW -J -r -o isoimage.iso %f &

s       make symlink in /tmp/burn (mksym)
        mksym %f &

x       make executable (chmod 755)
        chmod 755 %f

r       chown -cR root:root
        sudo chown -cR root:root %f

a       chown -cR aleyscha:users
        sudo chown -cR aleyscha:users %f

u       mount /dev/cdrom
        mount /dev/cdrom

u       umount /dev/cdrom
        umount /dev/cdrom

u       wodim -v dev=/dev/cdrom -blank=fast
        urxvtc -e wodim -v dev=/dev/cdrom -blank=fast &

u       dd if=/dev/cdrom of=/downloads/New/isoimage.iso
        urxvtc -e dd if=/dev/cdrom of=/downloads/New/isoimage.iso &

u       unmount ISO Image (fusermount -u /mnt/cdrom)
        fusermount -u /mnt/cdrom

u       unmount ISO Image (fusermount -u /mnt/iso1)
        fusermount -u /mnt/iso1

u       unmount ISO Image (fusermount -u /mnt/iso2)
        fusermount -u /mnt/iso2

g       edit file in gvim as root (sudo gvim %f &)
    sudo gvim %f &

c       copy (fui %f)
    urxvtc -e fui %f &

p       paste (fui --copy)
    urxvtc -e fui --copy &

p       paste (fui --move)
    urxvtc -e fui --move &

c       clamscan (clamscan --recursive --infected --bell --remove)
    urxvtc -e clamscan --recursive --infected --bell --remove %f &

b       Send via Bluetooth to device (obexftp -b 00:17:D5:85:0D:6F -p)
    obexftp -b 00:17:D5:85:0D:6F -p %f &

+ t t
d       Do something on the tagged files
    set %t; CMD=%{Enter command}
    while [ -n "$1" ]; do
      $CMD "$1"
      shift
    done

+ t t
@       Make symlink in /tmp/burn
        while [ -n "$1" ]; do
          mksym "$1"
          shift
        done

0       Edit a bug report and send it to root
    I=`mktemp ${MC_TMPDIR:-/tmp}/mail.XXXXXX` || exit 1
    ${EDITOR-vi} $I
    test -r $I && mail root < $I
    rm -f $I

=+ f \.1$ | f \.3$ | f \.4$ | f \.5$ | f \.6$ | f \.7$ | f \.8$ | f \.man$ & t r
1       Display the file with roff -man
    nroff -man %f | less

2       Call the info hypertext browser
        info

= t d
3       Compress the current subdirectory (tar.gz)
    Pwd=`basename "%d" /`
    echo -n "Name of the compressed file (without extension) [$Pwd]: "
    read tar
        if [ "$tar"x = x ]; then tar="$Pwd"; fi
    cd .. && \
    tar cf - "$Pwd" | gzip -f9 > "$tar.tar.gz" && \
    echo "../$tar.tar.gz created."

4       Compress the current subdirectory (tar.bz2)
    Pwd=`basename %d /`
    echo -n "Name of the compressed file (without extension) [$Pwd]: "
    read tar
        if [ "$tar"x = x ]; then tar="$Pwd"; fi
    cd .. && \
    tar cf - "$Pwd" | bzip2 -f > "$tar.tar.bz2" && \
    echo "../$tar.tar.bz2 created."

= f \.c$ & t r
+ f \.c$ & t r & ! t t
5       Compile and link current .c file
        make `basename %f .c` 2>/dev/null || cc -O -o `basename %f .c` %f

+ t r & ! t t
a       Append file to opposite
    cat %f >>%D/%f

+ t t
A       Append files to opposite files
    set %t
    while [ -n "$1" ]; do
      cat $1 >>%D/$1
      shift
    done

+ t r & ! t t
d       Delete file if a copy exists in the other directory.
    if [ "%d" = "%D" ]; then
      echo "The two directores must be different"
      exit 1
    fi
      if [ -f %D/%f ]; then        # if two of them, then
          if cmp -s %D/%f %f; then
            rm %f && echo %f: DELETED
          else
            echo "%f and %D/%f differ: NOT deleted"
            echo -n "Press RETURN "
            read key
          fi
    else
      echo %f: No copy in %D/%f: NOT deleted.
        fi

+ t t
D       Delete tagged files if a copy exists in the other directory.
    if [ "%d" = "%D" ]; then
      echo "The two directores must be different"
      exit 1
    fi 
        for i in %t
        do 
          if [ -f %D/$i ]; then
            SUM1="`sum $i`"
            SUM2="`sum %D/$i`"
            if [ "$SUM1" = "$SUM2" ]; then
          rm $i && echo ${i}: DELETED
        else
          echo $i and %D/$i differ: NOT deleted.
        fi
      else
        echo %f has no copy in %D/%f: NOT deleted.
          fi
        done

m       View manual page
    MAN=%{Enter manual name}
    %view man -P cat $MAN

= f \.gz$ & t r
+ ! t t
n       Inspect gzip'ed newsbatch file
        dd if=%f bs=1 skip=12|zcat|${PAGER-more}
        # assuming the cunbatch header is 12 bytes long.

= t r &
+ ! t t
h       Strip headers from current newsarticle
    CHECK=`awk '{print $1 ; exit}' %f` 2>/dev/null
    case $CHECK in
      Newsgroups:|Path:)
          I=`mktemp ${MC_TMPDIR:-/tmp}/news.XXXXXX` || exit 1
          cp %f $I && sed '/^'"$CHECK"' /,/^$/d' $I > %f
              [ "$?" = "0" ] && rm $I
          echo %f: header removed
        ;;
      *)
          echo %f is not a news article.
        ;;
    esac

+ t t
H       Strip headers from the marked newsarticles
    set %t
    while [ -n "$1" ]; do
      CHECK=`awk '{print $1 ; exit}' $1` 2>/dev/null
      WFILE=`mktemp ${MC_TMPDIR:-/tmp}/news.XXXXXX` || exit 1
      case $CHECK in
        Newsgroups:|Path:)
          cp $1 $WFILE && sed '/^'"$CHECK"' /,/^$/d' $WFILE > $1
              if [ "$?" = "0" ]; then
        rm $WFILE; echo $1 header removed. OK.
          else
        echo "Oops! Please check $1 against $WFILE"
          fi
        ;;
        *)
          echo $1 skipped: Not a news article.
        ;;
      esac
      shift
    done

= t r
+ ! t t
r       Copy file to remote host
    echo -n "To which host?: "
        read Host
        echo -n "To which directory on $Host?: "
        read Dir
        rcp -p %f ${Host}:$Dir

+ t t
R       Copy files to remote host (no error checking)
    echo -n "Copy files to which host?: "
        read Host
        echo -n "To which directory on $Host? :"
        read Dir
        rcp -pr %u ${Host}:$Dir

= f \.tex$ & t r
+ f \.tex$ & t r & ! t t
t       Run latex on file and show it with xdvi
        latex %f && xdvi `basename %f .tex`.dvi

=+ f ^part | f ^Part | f uue & t r
+ t t
U       Uudecode marked news articles (needs work)
    set %t
        (
    while [ -n "$1" ]; do # strip headers
      FIRST=`awk '{print $1 ; exit}' $1`
      cat $1 | sed '/^'"$FIRST"' /,/^$/d'; shift
    done
    ) |sed '/^$/d' |sed -n '/^begin 6/,/^end$/p' | uudecode
    if [ "$?" != "0" ]; then
      echo "Cannot decode %t"
    fi
    echo "Please test the output file before deleting anything"

=+ f \.tar\.gz$ | f \.tar\.z$ | f \.tgz$ | f \.tpz$ | f \.tar\.Z$| f \.tar\.bz2$ & t r
x       Extract the contents of a compressed tar file
    unset EXT
    case %f in 
        *.tar.bz2) EXT=tar_bz2;;
    esac
    if [ "$EXT" = "tar_bz2" ]; then
      bunzip2 -c %f | tar xvf -
    else
      gzip -dc %f | tar xvf -
    fi

= t r
+ ! t t
y       Gzip or gunzip current file
        unset DECOMP
    case %f in 
        *.gz) DECOMP=-d;;
        *.[zZ]) DECOMP=-d;;
    esac
        gzip $DECOMP -v %f

+ t t
Y       Gzip or gunzip tagged files
        for i in %t
        do
          unset DECOMP
      case $i in 
        *.gz) DECOMP=-d;;
        *.[zZ]) DECOMP=-d;;
      esac
          gzip $DECOMP -v $i
        done

+ ! t t
b       Bzip2 or bunzip2 current file
        unset DECOMP
    case %f in 
        *.bz2) DECOMP=-d;;
    esac
        bzip2 $DECOMP -v %f

+ t t
B       Bzip2 or bunzip2 tagged files
        for i in %t
        do
          unset DECOMP
      case $i in 
        *.bz2) DECOMP=-d;;
      esac
          bzip2 $DECOMP -v $i
        done

+ f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t
z       Extract compressed tar file to subdirectory
    unset D
    set gzip -cd
    case %f in
      *.tar.gz) D="`basename %f .tar.gz`";;
      *.tgz)    D="`basename %f .tgz`";;
      *.tpz)    D="`basename %f .tpz`";;
      *.tar.Z)  D="`basename %f .tar.Z`";;
      *.tar.z)  D="`basename %f .tar.z`";;
      *.tar.bz2) D="`basename %f .tar.bz2`"; set bunzip2 -c ;;
      *.tar.F) D="`basename %f .tar.F`"; set freeze -dc;
    esac
    mkdir $D; cd $D && ($1 $2 ../%f | tar xvf -)

+ t t
Z       Extract compressed tar files to subdirectories
    for i in %t
        do
      set gzip -dc
          unset D
      case $i in
        *.tar.gz)  D="`basename $i .tar.gz`";;
        *.tgz)     D="`basename $i .tgz`";;
        *.tpz)     D="`basename $i .tpz`";;
        *.tar.Z)   D="`basename $i .tar.Z`";;
        *.tar.z)   D="`basename $i .tar.z`";;
        *.tar.F)   D="`basename $i .tar.F`"; set freeze -dc;;
        *.tar.bz2) D="`basename $i .tar.bz2`"; set bunzip2 -c;;
          esac
      mkdir $D; (cd $D && $1 $2 ../$i | tar xvf -)
        done

+ f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ & t r & ! t t
c       Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2
    unset D
    unset EXT
    case %f in
        *.tgz)    EXT=tgz;;
        *.tpz)    EXT=tpz;;
        *.Z)    EXT=Z;;
        *.z)    EXT=z;;
        *.gz)    EXT=gz;;
        *.bz2)    EXT=bz2;;
    esac
        case $EXT in
      tgz|tpz)    D="`basename %f .$EXT`.tar";;
      gz|Z|z)    D="`basename %f .$EXT`";;
      bz2)        D="`basename %f .bz2`";;
        esac
        if [ "$EXT" = "bz2" ]; then
        bunzip2 -v %f ; gzip -f9 -v $D
    else
        gunzip -v %f ; bzip2 -v $D
    fi

+ t t
C       Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2
    set %t
    while [ -n "$1" ]
        do
      unset D
      unset EXT
      case $1 in
        *.tgz)    EXT=tgz;;
        *.tpz)    EXT=tpz;;
        *.Z)    EXT=Z;;
        *.z)    EXT=z;;
        *.gz)    EXT=gz;;
        *.bz2)    EXT=bz2;;
      esac
      case $EXT in
          tgz)    D="`basename $1 .tgz`.tar";;
              tpz)    D="`basename $1 .tpz`.tar";;
          gz|Z|z) D="`basename $1 .$EXT`";;
          bz2)    D="`basename $1 .bz2`";;
      esac
      if [ "$EXT" = "bz2" ]; then
        bunzip2 -v $1
        gzip -f9 -v $D
      else
        gunzip -v $1
        bzip2 -v $D
      fi
      shift
        done

+ x /usr/bin/open | x /usr/local/bin/open & x /bin/sh
o       Open next a free console
        open -s -- sh

#####################
####             ####
#### Added by me ####
####             ####
#####################

#### Video File Menu ####

+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
p       mplayer
        mplayer %f

+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
i       ffmpeg -i (show audio/video info)
        ffmpeg -i %f
 
+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
i       mediainfo (show audio/video info)
        mediainfo %f

+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
v       vlc
        vlc %f &

+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
e       Edit with AviDemux (avidemux2_gtk %f)
        avidemux2_gtk %f &

+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
e       Encode to h264 vhq 96 700 (enc2h264 vhq 96 700 %f)
        urxvtc -e enc2h264 vhq 96 700 %f &

+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
e       Encode to h264 hq 64 500 (enc2h264 hq 64 500 %f)
        urxvtc -e enc2h264 hq 64 500 %f &

+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
e       Encode to h264 wmv 17fps 500 64 (enc2h264 wmv17 %f)
        urxvtc -e enc2h264 wmv17 %f &

+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
e       Encode to h264 wmv 25fps 500 64 (enc2h264 wmv25 %f)
        urxvtc -e enc2h264 wmv25 %f &

+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
@       Encode to -oac mp3_abr_96 (enc2h264 audio 96)
        urxvtc -e enc2h264 audio 96 %f &

+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
@       Encode to vhq 140 1000 (scale to 624x352, enc2h264 series %f)
        urxvtc -e enc2h264 series %f &

+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
e       Encode to mpg 160 1152 (enc2mpg mpg 160 1152 %f)
        urxvtc -e enc2mpg mpg 160 1152 %f &

+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.VOB$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ & t r & ! t t
f       mplayer framebuffer (mplayer -vo fbdev -fs)
        mplayer -vo fbdev -fs %f

+ f \.mkv$ & t r & ! t t
e       Extract mkv file (video-audio-subtitle, extractmkv %f)
        urxvtc -e extractmkv %f &

#### Audio File Menu ####

+ f \.wav$ | f \.mp3$ | f \.au$ | f \.aiff$ | f \.snd$ | f \.mp2$ | f \.flac$ | f \.wma$ | f \.snd$ | f \.mpc$ | f \.ac3$ | f \.mid$ | f \.ogg$ & t r & ! t t
p       mplayer
        urxvtc -e mplayer %f &

+ f \.wav$ | f \.mp3$ | f \.au$ | f \.aiff$ | f \.snd$ | f \.mp2$ | f \.flac$ | f \.wma$ | f \.snd$ | f \.mpc$ | f \.ac3$ | f \.mid$ | f \.ogg$ & t r & ! t t
i       ffmpeg -i (show audio/video info)
        ffmpeg -i %f &

+ f \.wav$ | f \.mp3$ | f \.au$ | f \.aiff$ | f \.snd$ | f \.mp2$ | f \.flac$ | f \.wma$ | f \.snd$ | f \.mpc$ | f \.ac3$ | f \.mid$ | f \.ogg$ & t r & ! t t
i       mediainfo (show audio/video info)
        mediainfo %f &

+ f \.wav$ | f \.mp3$ | f \.au$ | f \.aiff$ | f \.snd$ | f \.mp2$ | f \.flac$ | f \.wma$ | f \.snd$ | f \.mpc$ | f \.ac3$ | f \.mid$ | f \.ogg$ & t r & ! t t
a       audacity
        audacity %f

+ f \.wav$ | f \.mp3$ | f \.au$ | f \.aiff$ | f \.snd$ | f \.mp2$ | f \.flac$ | f \.wma$ | f \.snd$ | f \.mpc$ | f \.ac3$ | f \.mid$ | f \.ogg$ & t r & ! t t
e       Encode to ABR MP3 (enc2mp3)
        urxvtc -e enc2mp3 %f &

#### Disk Image File Menu ####

+ f \.iso$ | f \.ccd$ | f \.img$ | f \.nrg$ | f \.mdf$ | f \.cue$ | f \.bin$ | f \.daa$ | f \.b6t$ | f \.b6i$ & t r & ! t t
i       isomaster
        isomaster %f

+ f \.cue$ | f \.bin$ & t r & ! t t
3       Convert BIN to ISO (bin2iso)
        urxvtc -e bin2iso %f &

+ f \.iso$ | f \.ccd$ | f \.img$ | f \.nrg$ | f \.mdf$ | f \.cue$ | f \.bin$ | f \.daa$ | f \.b6t$ | f \.b6i$ & t r & ! t t
c       Poweriso convert image to ISO (all2iso)
        urxvtc -e all2iso %f &

+ f \.ccd$ & t r & ! t t
5       Convert CCD to ISO (myccd2iso)
        urxvtc -e myccd2iso %f &

+ f \.iso$ | f \.bin$ | f \.img$ | f \.nrg$ | f \.mdf$ & t r & ! t t
5       Fuseiso mount image /mnt/cdrom (fuseiso %f /mnt/cdrom)
        fuseiso %f /mnt/cdrom

+ f \.iso$ | f \.bin$ | f \.img$ | f \.nrg$ | f \.mdf$ & t r & ! t t
5       Fuseiso mount image /mnt/iso1 (fuseiso %f /mnt/iso1)
        fuseiso %f /mnt/iso1

+ f \.iso$ | f \.bin$ | f \.img$ | f \.nrg$ | f \.mdf$ & t r & ! t t
5       Fuseiso mount image /mnt/iso2 (fuseiso %f /mnt/iso2)
        fuseiso %f /mnt/iso2

+ f \.cue$ & t r & ! t t
5       Burn BIN/CUE image (cdrdao write --device /dev/cdrom %f)
        urxvtc -e cdrdao write --device /dev/cdrom %f &

+ f \.iso$ | f \.bin$ & t r & ! t t
5       Burn ISO image (burn-cd -m)
        urxvtc -e burn-cd -m %f &

+ f \.iso$ & t r & ! t t
5       Burn ISO image (wodim -v dev=/dev/cdrom)
        urxvtc -e wodim -v dev=/dev/cdrom %f &

#### Image File Menu ####

+ f \.jpg$ | f \.jpeg$ | f \.bmp$ | f \.png$ | f \.gif$ | f \.svg$ & t r & ! t t
v       xv
        xv %f &

+ f \.jpg$ | f \.jpeg$ | f \.bmp$ | f \.png$ | f \.gif$ | f \.svg$ & t r & ! t t
v       feh
        feh %f &

+ f \.jpg$ | f \.jpeg$ | f \.bmp$ | f \.png$ | f \.gif$ | f \.svg$ & t r & ! t t
f       feh --scale-down
        feh --scale-down %f &
    
+ f \.jpg$ | f \.jpeg$ | f \.bmp$ | f \.png$ | f \.gif$ | f \.svg$ & t r & ! t t
g       gimp
        gimp %f &

+ f \.jpg$ | f \.jpeg$ | f \.bmp$ | f \.png$ | f \.gif$ | f \.svg$ & t r & ! t t
3       geeqie
        geeqie %f &

#### PDF File Menu ####

+ f \.pdf$ & t r & ! t t
e       epdfview
        epdfview %f &

+ f \.pdf$ & t r & ! t t
a       apvlv
        apvlv %f &

+ f \.pdf$ & t r & ! t t
x       viewpdf
        urxvtc -e viewpdf %f &

#### Text File Menu ####

+ f \.txt$ | f \.nfo$ | f \.cfg$ | f \.log$ | f \.srt$ | f \.sub$ | f \.ssa$ & t r & ! t t
v       leafpad
        leafpad %f &

+ f \.txt$ | f \.nfo$ | f \.cfg$ | f \.log$ | f \.srt$ | f \.sub$ | f \.ssa$ & t r & ! t t
g       gvim
        gvim %f &

#### Archive File Menu ####

+ f \.zip$ | f \.tar.gz$ | f \.rar$ | f \.bz2$ | f \.tgz$ | f \.7z$ | f \.ace$ & t r & ! t t
l       List file contents (7z l)
        7z l %f

+ f \.zip$ | f \.tar.gz$ | f \.rar$ | f \.bz2$ | f \.tgz$ | f \.7z$ | f \.ace$ & t r & ! t t
1       xarchiver
        xarchiver %f &

+ f \.zip$ | f \.tar.gz$ | f \.rar$ | f \.bz2$ | f \.tgz$ | f \.7z$ | f \.ace$ & t r & ! t t
2       Extract *.tar.gz (tar -xzvf)
        urxvtc -e tar -xzvf %f &

+ f \.zip$ | f \.tar.gz$ | f \.rar$ | f \.bz2$ | f \.tgz$ | f \.7z$ | f \.ace$ & t r & ! t t
3       Extract *.tar.bz2 (tar -xjvf)
        urxvtc -e tar -xjvf %f &

+ f \.zip$ | f \.tar.gz$ | f \.rar$ | f \.bz2$ | f \.tgz$ | f \.7z$ | f \.ace$ | f \.cbr$ | f \.cbz$ & t r & ! t t
4       Extract *.rar Full Path (unrar x)
        urxvtc -e unrar x %f &

+ f \.zip$ | f \.tar.gz$ | f \.rar$ | f \.bz2$ | f \.tgz$ | f \.7z$ | f \.ace$ | f \.cbr$ | f \.cbz$ & t r & ! t t
5       Extract *.rar Current Dir (unrar e)
        urxvtc -e unrar e %f &

+ f \.zip$ | f \.tar.gz$ | f \.rar$ | f \.bz2$ | f \.tgz$ | f \.7z$ | f \.ace$ | f \.cbr$ | f \.cbz$ & t r & ! t t
5       Extract broken *.rar Full Path (unrar x -kb)
        urxvtc -e unrar x -kb %f &

+ f \.zip$ & t r & ! t t
6       Extract *.zip (unzip)
        urxvtc -e unzip %f &

+ f \.zip$ | f \.tar.gz$ | f \.rar$ | f \.bz2$ | f \.tgz$ | f \.7z$ | f \.ace$ & t r & ! t t
6       Extract *.zip with bsdtar (bsdtar -xvf)
        urxvtc -e bsdtar -xvf %f &

+ f \.zip$ | f \.tar.gz$ | f \.rar$ | f \.bz2$ | f \.tgz$ | f \.7z$ | f \.ace$ & t r & ! t t
7       Extract *.7z Full Path (7z x)
        urxvtc -e 7z x %f &

+ f \.zip$ | f \.tar.gz$ | f \.rar$ | f \.bz2$ | f \.tgz$ | f \.7z$ | f \.ace$ & t r & ! t t
8       Extract *.7z Current Dir (7z e)
        urxvtc -e 7z e %f &

+ f \.ace$ & t r & ! t t
9       Extract *.ace Full Path (unace x)
        urxvtc -e unace x %f &

+ f \.ace$ & t r & ! t t
a       Extract *.ace Current Dir (unace e)
        urxvtc -e unace e %f &

+ f \.rar$ | f \.cbz$ & t r & ! t t
b       Extract *.rar in *.rar_dir directory (unrar2dir)
        urxvtc -e unrar2dir %f &

+ f \.zip$ & t r & ! t t
c       Extract *.zip in *.zip_dir directory (unzip2dir)
        urxvtc -e unzip2dir %f &

+ f \.tar.gz$ | f \.bz2$ | f \.tgz$ & t r & ! t t
e       yaourt Install/Upgrade Package (yaourt -U)
        yaourt -U %f

#### Windows Executable File Menu ####

+ f \.exe$ | f \.EXE$ | f \.bat$ | f \.BAT$ & t r & ! t t
r       wine
        urxvtc -e wine %f &

+ f \.exe$ | f \.EXE$ | f \.bat$ | f \.BAT$ | f \.cmd$ | f \.CMD$ | f \.COM$ | f \.com$ & t r & ! t t
r       Dosbox (Dosbox normal)
        Dosbox normal %f &

+ f \.exe$ | f \.EXE$ | f \.bat$ | f \.BAT$ | f \.cmd$ | f \.CMD$ | f \.COM$ | f \.com$ & t r & ! t t
r       Dosbox (Dosbox normal3x)
        Dosbox normal3x %f &

+ f \.exe$ | f \.EXE$ | f \.bat$ | f \.BAT$ | f \.cmd$ | f \.CMD$ | f \.COM$ | f \.com$ & t r & ! t t
r       Dosbox (Dosbox advmame3x)
        Dosbox advmame3x %f &

#### Internet File Menu ####

+ f \.htm$ | f \.html$ | f \.php$ | f \.asp$ & t r & ! t t
k       kazehakase
        kazehakase %f

+ f \.htm$ | f \.html$ | f \.php$ | f \.asp$ & t r & ! t t
s       swiftweasel
        swiftweasel %f

+ f \.htm$ | f \.html$ | f \.php$ | f \.asp$ & t r & ! t t
s       elinks
        urxvtc -e elinks %f &

+ f \.htm$ | f \.html$ | f \.php$ | f \.asp$ & t r & ! t t
s       links -g
        links -g %f

#### Document File Menu ####

+ f \.doc$ | f \.rtf$ & t r & ! t t
a       abiword
        abiword %f

+ f \.doc$ | f \.rtf$ & t r & ! t t
o       OpenOffice Writer
        soffice -writer %f

+ f \.doc$ | f \.rtf$ & t r & ! t t
o       antiword
        urxvtc -e antiword %f &

+ f \.doc$ | f \.rtf$ & t r & ! t t
o       viewword (antiword -f %f > vi)
        urxvtc -e viewword %f &

+ f \.lit$ & t r & ! t t
o       c-lit
        c-lit %f

#### Spread Sheet File Menu ####

+ f \.xls$ | f \.csv$ & t r & ! t t
g       gnumeric
        gnumeric %f

#### Presentation File Menu ####

+ f \.ppt$ | f \.pps$ & t r & ! t t
v       OpenOffice Impress (soffice -impress)
        soffice -impress %f

#### Java File Menu ####

+ f \.jar$ & t r & ! t t
e       Execute java program (java -jar)
        java -jar %f

#### Help/Manual File Menu ####

+ f \.chm$ & t r & ! t t
v       xchm
        xchm %f

#### Emulator Roms ####
+ f \.smc$ & t r & ! t t
v       zsnes
        zsnes %f

+ f \.smc$ & t r & ! t t
v       snes9x (snes9x -tr -dfr -y2)
        snes9x -tr -dfr -y2 %f

+ f \.smd$ & t r & ! t t
v       dgen (dgen -G 1024x600)
        dgen -G 1024x600 %f

+ f \.v64$ | f \.z64$ & t r & ! t t
v       mupen64plus (mupen64plus -nogui)
        mupen64plus -nogui %f

+ f \.nes$ & t r & ! t t
v       tuxnes
        tuxnes %f

+ f \.nes$ & t r & ! t t
v       fceu
        fceu -input1 gamepad %f

+ f \.nes$ & t r & ! t t
v       ines
        ines %f

+ f \.int$ & t r & ! t t
v       intellivission
        int %f

+ f \.gb$ | f \.gba$ & t r & ! t t
v       VisualBoyAdvance
        VisualBoyAdvance -4 %f

+ f \.gb$ | f \.gba$ & t r & ! t t
v       gvba
        gvba %f

+ f \.gba$ & t r & ! t t
v       vgba
        vgba %f

+ f \.gb$ & t r & ! t t
v       vgb
        vgb %f

+ f \.adf$ & t r & ! t t
v       amigacomputer
        e-uae %f

+ f \.gcm$ & t r & ! t t
v       tuxcube
        tuxcube %f

+ f \.st$ & t r & ! t t
v       hatari
        hatari %f

+ f \.a26$ & t r & ! t t
v       stella
        stella %f

+ f \.col$ & t r & ! t t
v       colem32
        colem32 %f

#### Source-Code File Menu ####

+ f \.c$ & t r & ! t t
c       compile source file (gcc -O2 -Wall -pedantic)
        urxvtc -e gcc -O2 -Wall -pedantic %f

+ f \.cpp$ & t r & ! t t
c       compile source file (gcc -O2 -Wall -pedantic)
        urxvtc -e g++ -O2 -Wall -pedantic %f

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#5 2009-04-15 19:22:43

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: [solved] getting Feh to open as default picture viewer (...from mc)

Ah, thank you, everyone. Like I said, can't believe I couldn't find it myself and I was looking everywhere -BUT- there. x_x  Anyway, leo, thank you! Almost all the same programs I use myself. smile Much obliged.

Offline

Board footer

Powered by FluxBB