#
# Initialization file for ezfm. Path should be ~/.ezfmrc
#
Section  "Files"
   Magicfile     ezfmMagic:~/.ezfmMagic:/usr/X11R6/share/ezfm/ezfmMagic
   IconPath      ezfmIcons:~/.ezfmIcons:/usr/X11R6/share/ezfm/ezfmIcons
   ExtensionFile ezfmExtension:~/.ezfmExtension:/usr/X11R6/share/ezfm/ezfmExtension
EndSection
#
# Note: the extension file above is used to supress magic check. You can
# associate actions based on the suffix of a file. For example, 
# .ps.gz         ghostview.xpm:purple2::$viewCpsedPs::: compressed ps
# .c             dot_c.xpm:red:b:$edit,@view::: C source
#


# list all removable devices here. The format is 
#    name mount_point pixmap_umounted pixmap_mounted 
# For example, the line
#  "cdrom   /cdrom   cdromU.xpm   cdromM.xpm"
# specifies the cdrom device, named 'cdrom'; mounted
# on '/cdrom'; if mounted, the relevent button will be
# labeled by 'cdromM.xpm'.
#
Section "Drives"
   cdrom        /cdrom    cdromU.xpm      cdromM.xpm
   Dos_floppy   /floppy   floppyDosU.xpm  floppyDosM.xpm
   Dos_zip      /zip      zipDosU.xpm     zipDosM.xpm
   Ext2_floppy  /floppy2  floppyExtU.xpm  floppyExtM.xpm
   Ext2_zip     /zip2     zipExtU.xpm     zipExtM.xpm
EndSection

# Resolve abbreviations in the magic file and the extension file.
# format is
#    name     translation
# examples
#   emacs      emacs "%p"
#   ungzip     (cd "%d"; gzip -d "%f")
#
# Notice the quotes. It is REALLY a good idea to quote pathnames!
#
# When resolved, %p will be replaced by the pathname
#                %d will be replaced by the directory name and
#                %f will be replaced by the file name
#                %b will be replaced by the file name with the '.suffix' removed 
#

Section "Commands"
  edit               nedit  "%p"
  viewImage          xv "%p"
  viewFig            xfig "%p"
  make               (cd "%d"; make -f "%f")
  tarContents        (cd "%d"; tar tf "%f"")
  untar              (cd "%d"; tar xvf "%f")
  cpioContents       cat "%p" | cpio -t
  extractCpio        (cd "%d"; cat "%p" | cpio -iv)
  arContents         (cd "%d"; ar t "%f")
  exec               (cd "%d"; "%f")
  uncompress         (cd "%d"; uncompress "%f")
  ungzip             (cd "%d"; gzip -d "%f")
  unzip              (cd "%d"; unzip "%f")
  viewPS             ghostview "%p"
  printPS            lpr "%p"
  diskUsage          du "%p" |awk '{printf("%-10d %s\n", $1, $2)}'
  tarUp              (cd "%d"; tar cvf "%f".tar "%f")
  playMovie          xanim "%p"
  playAudio          cat "%p" > /dev/audio
  lex                (cd "%d"; lex "%f")
  viewPDF            acroread "%p"
  viewDVI            xdvi "%p"
  printDVI           (cd "%d"; (dvips -o "%b".ps "%b") && (lpr "%b".ps))
  tex                (cd "%d"; tex "%f")
  texView            (cd "%d"; echo q|tex "%f";  xdvi "%b")
  texPrint           (cd "%d"; echo q|tex "%f"; (dvips -o "%b".ps "%b") && (lpr "%b".ps))
  latex              (cd "%d"; latex "%f")
  latexView          (cd "%d"; echo q|latex "%f"; xdvi "%b")
  latexPrint         (cd "%d"; echo q|latex "%f";  (dvips -o "%b".ps "%b") && (lpr "%b".ps))
  uudecode           (cd "%d"; echo decoding ... ; head -1 "%f"; uudecode "%f")
  playMPEGV          mpeg_play "%p"
  playMPEGA          mpg123 "%p"
  xterm              xterm -ls -fn 10x20
EndSection


# list the most commonly used programs here. They are divided
# into groups (pages in a tabed folder). The format is
#   name  label_pixmap:color:font:doubleClickAction:dropAction::
# (make sure there are SIX colons!)
# Example, 
#   ghostview  ghost.xpm:red:b:ghostview:ghostview %p::
# Again, abbreviations are:
# %p     full pathname of drag
# %d     parent directory name of drag
# %f     filename of drag
# The above example can be equivalently specified as
#   ghostview  ghost.xpm:red:b:ghostview:(cd %d; ghostview %f)

Section "Tools"
   Page "Math"
        xmaple	         maple.xpm::bi:xmaple:::
        mathematica      mathematica.xpm::bi:mathematica:::
        matlab           matlab.xpm::bi:$xterm -e matlab:::
        maxima           maxima.xpm::bi:$xterm -e maxima:::
        netmath          netmath.xpm::bi:netmath:::
        zplot            xplot.xpm::bi:$xterm -e xplot:::
        gp               gp.xpm:red:b:$xterm -e gp:::
   Page "Editors"
        vi               xedit.xpm:red:b:$xterm -e vi:$xterm -e vi "%p"::
        emacs            emacs.xpm:red:b:emacs:emacs "%p"::
        nedit            :red:b:nedit:nedit "%p"::
   Page "Viewers"  
        ghostview        ghostview.xpm:red:b:ghostview:ghostview "%p"::
        xdvi             xdvi.xpm:red:b:xdvi:xdvi "%p"::
        xanim            xanim.xpm:red:bi::xanim "%p"::
        xv               xv.xpm:red:b:xv:xv "%p"::
   Page "Image Tools"   
        gimp             gimp.xpm:red:b:gimp:gimp "%p"::
        xv               xv.xpm:red:b:xv:xv "%p"::
        xpaint           palette.xpm:red:b:xpaint:xpaint "%p"::
   Page "Drawing Tools"
        xfig             xfig.xpm::b:xfig:xfig "%p"::
   Page "Mail Tools" 
        pine             pine.xpm::b:$xterm -e pine:::
        xcmail           xcmail.xpm::b:XCmail:::	
   Page "Net tools" 
        netscape         netscape.xpm::b:netscape:::
        xmftp            ftp.xpm::b:xmftp:::
        ncftp            ftp.xpm::b:xterm -e ncftp:::
   Page "Misc" 
        gzip             gzip.xpm:red:b::gzip "%p"::
        xterm            xterm.xpm::bi:$xterm::
        nt               wincenter.xpm::bi:nt::
        cm               cm.xpm:red:b:cm::
        setroot          flowers.xpm:red:b::setroot -s -retain "%p"
EndSection
