Skip to content
Snippets Groups Projects
feh.pre 48.5 KiB
Newer Older
.Dd $DATE$
.Nm feh
.Nd image viewer and cataloguer
.
.Nm
.Op Ar options
orbea's avatar
orbea committed
.Op Ar files | Ar directories | Ar URLs ...
Birte Kristina Friesel's avatar
Birte Kristina Friesel committed
This manual documents
.Nm
$VERSION$
Compile-time switches in this build:
.
.Bl -bullet -compact
.
.It
.
.It
Xinerama multi-monitor support $MAN_XINERAMA$
.
.It
.
.It
inotify-based auto-reload of changed files $MAN_INOTIFY$
.
.El
.
$MAN_DEBUG$
.Sh DESCRIPTION
is a light-weight, configurable and versatile image viewer.
It is aimed at command line users, but can also be started from graphical file
managers.
Apart from viewing images, it can compile text and thumbnail
listings, show (un)loadable files, set X11 backgrounds, and more.
Features include filelists, various image sorting modes, custom action scripts,
and image captions.
can be controlled by configurable keyboard and mouse shortcuts, terminal
input and signals.
When no file arguments or filelists are specified and
.Cm --start-at
is not used,
displays all files in the current directory.
EXIF tags are supported either using exiv2 / exifgrep via
.Pq see the Sx USAGE EXAMPLES No section ,
or as a builtin feature by compiling
with exif=1. In this build of
.Nm ,
is based on various modes, which are selected at startup by command line
orbea's avatar
orbea committed
Slideshow mode is the default.
It opens a window and displays the first image in it;
the slideshow position can be advanced
.Pq or otherwise changed
using keyboard and mouse shortcuts.
In slideshow mode, images can be deleted either from the filelist or from the
disk, a changed filelist can also be saved to the disk and reopened at a later
An image can also be read from stdin via
.Qq feh - .
orbea's avatar
orbea committed
Montage mode forms a montage from the filelist.
The resulting image can be viewed or saved,
and its size can be limited by height, width or both.
orbea's avatar
orbea committed
Index mode forms an index print from the filelist.
Image thumbnails are shown along with the filename,
size and dimensions, printed using a truetype
orbea's avatar
orbea committed
font of your choice.
The resulting image can be viewed or saved, and its size
can be limited by height, width or both.
Thumbnail mode is like index mode, but the mini-images are clickable and open
the selected image in a new window.
Multiwindow mode shows images in multiple windows, instead of as a slideshow
orbea's avatar
orbea committed
in one window.
Don't use with a large filelist ;)
orbea's avatar
orbea committed
List mode doesn't display images.
Instead, it outputs an
.Cm ls Ns No - Ns style
listing of the files in the filelist, including image info such as size, number
orbea's avatar
orbea committed
of pixels, type, etc.
There is also a Customlist mode which prints image info
in a custom format specified by a printf-like format string.
can also list either all the loadable files in a filelist or all the
orbea's avatar
orbea committed
unloadable files.
This is useful for preening a directory.
.Sh SUPPORTED FORMATS
.
.Nm
guraga's avatar
guraga committed
can open any format supported by imlib2, most notably jpeg, png,
orbea's avatar
orbea committed
pnm, tiff, and bmp.
The gif format is also supported, but only for static images.
In case of animations, only the first frame will be shown.
.
If the convert binary
.Pq supplied by ImageMagick
guraga's avatar
guraga committed
is available, it also has limited support for many other file types, such as
orbea's avatar
orbea committed
svg, xcf and otf.
If dcraw is available,
.Nm
also supports RAW files provided by cameras and will display the embedded
thumbnails.
orbea's avatar
orbea committed
Use
guraga's avatar
guraga committed
.Cm --conversion-timeout Ar timeout
with a non-negative value to enable support for these formats.
.Pp
.
As Imlib2 may take several seconds to determine whether it can load a file or
not
.Pq e.g. when attempting to open a large video ,
.Nm
checks each file's header before loading it.
If it looks like an image, it is passed on to Imlib2, otherwise, it is
assumed to be unloadable.
This greatly improves performance when working in directories with mixed files
.Pq i.e., directories which do not exclusively contain image files .
If you think that Imlib2 can load a file which
.Nm
has determined to be likely not an image, set the environment variable
.Qq FEH_SKIP_MAGIC
to pass all files directly to Imlib2, bypassing the header check.
The environment variable's value does not matter, it just needs to be set.
.Bl -tag -width indent
.It Cm -A , --action Oo Ar flag Oc Ns Oo [ Ar title ] Oc Ns Ar action
orbea's avatar
orbea committed
Specify a shell command as an action to perform on the image.
In slideshow or multiwindow mode, the action will be run when
the action_0 key is pressed, in list mode, it will be run for each file.
In loadable/unloadable mode, it will be run for each loadable/unloadable
file, respectively.
In thumbnail mode, clicking on an image will cause the action to run instead
of opening the image.
Loading
Loading full blame...