#
# Configuration file for genericview.
#
# The format of the file is
# <type> [<type> ...]: <viewer> [<viewer> ...]
#
# Hash-initiated comments are allowed
# Viewers are looked for in the order they are specified.
# Normal \-based line continuation is supported (and is processed *after*
# stripping comments)
# Viewers can be enclosed in double quotes to allow whitespace.
# Viewer names can include escaped spaces.
# To use backslashes inside a viewer reference, use \\.
# To use double quotes (") inside a quoted viewer reference, use \".
#
# If you put "-page" after a viewer, it will be assumed to be putting output
# on stdout/stderr, and will be displayed using $X11PAGER.  If $X11PAGER is
# unset, it will be displayed in a specially started xterm using your default
# pager (or less if $PAGER is unset - more is unsuitable due instantly
# exiting.)
#
# All commands are run using sh, and its parameter expansion and scripting can
# be used.
#
# ${FILENAME} will be replaced with the filename being viewed inside any
# viewer specification.  This is done PRIOR to calling sh.
#
# less is used as the default pager in the examples, as more exits when it
# reach the end of file.  genericview has special support for less, and will
# automatically strip the -E/--QUIT-ON-EOF and -F/--quit-if-one-screen from
# $LESS.
#
# Note that $FILENAME is pre-escaped for the shell.  Anything that
# includes ${FILENAME} and needs to be quoted for the shell (e.g, the mozilla
# openURL command) must use escaped double quotes (\"), not single quotes (').
#

pdf:		acrobat acroread4 xpdf ghostview gv
ps:		ghostview gv
jpg gif image:	xv
mod:		xmp
mp3:		gqmpeg x11amp "mpg123 -b 2048"
sid:		sidplay
video:		xanim "mpeg_play -quiet -dither color"
ulaw:		"cat ${FILENAME} > /dev/audio"
deb:		"dpkg-deb -c ${FILENAME}" -page
bz2:		"bzcat ${FILENAME}" -page
gz Z:		"zcat ${FILENAME}" -page
rfc howto:	"cat" -page
tar:		"tar tvf ${FILENAME}" -page
tar_bz2:	"tar --use-compress-prog=bunzip2 -tvf ${FILENAME}" -page
tar_Z tar_gz:	"tar ztvf ${FILENAME}" -page
zip:		"unzip -v ${FILENAME}" -page
rpm:		"(rpm -q -is -p ${FILENAME} && \
		echo -n 'Requires: ' && rpm -q -R -p ${FILENAME} && \
		echo -n 'Provides: ' && rpm -q --provides -p ${FILENAME})" -page
html:		"mozilla -remote \"openURL(file://${FILENAME})\"" \
		"netscape -remote \"openURL(file://${FILENAME})\"" \
		"lynx -dump ${FILENAME}" -page "cat" -page
man:		"nroff -mandoc ${FILENAME}" -page
