Skip to content
Snippets Groups Projects
feh.pre 32 KiB
Newer Older
  • Learn to ignore specific revisions
  • Birte Kristina Friesel's avatar
    Birte Kristina Friesel committed
    Quit
    .Nm
    
    Reload current image.  Useful for webcams
    
    Save the current image to a unique filename
    
    .
    .It v Bq toggle_fullscreen
    
    Toggle fullscreen
    
    .
    .It w Bq size_to_image
    
    Change window size to fit current image size
    
    Close current window
    
    Jump to a random position in the current filelist
    
    .
    .It < , > Bq orient_3 , orient_1
    
    In place editing - rotate the images 90 degrees (counter)clockwise.
    
    The rotation is lossless, but may create artifacts in some image corners when
    used with JPEG images.  Rotating in the reverse direction will make them go
    away.  See
    .Xr jpegtran 1
    
    for more about lossless JPEG rotation.
    
    .It _ Bq flip
    .
    In place editing - vertical flip
    .
    .It | Bq mirror
    .
    In place editing - horizontal flip.
    Again, see
    .Xr jpegtran 1
    for more information.
    .
    
    .It 0 .. 9 Bq action_0 .. action_9
    
    Execute the corresponding action
    .Pq 0 = Cm --action , No 1 = Cm --action1 No etc.
    
    .
    .It Ao Return Ac Bq action_0
    
    Run the command defined by
    .Cm --action
    
    .
    .It Ao home Ac Bq jump_first
    
    Show first image
    
    .
    .It Ao end Ac Bq jump_last
    
    Show last image
    
    .
    .It Ao page up Ac Bq jump_fwd
    
    Go forward ~5% of the filelist
    
    .
    .It Ao page down Ac Bq jump_back
    
    Go backward ~5% of the filelist
    
    .
    .It Ao delete Ac Bq remove
    
    Remove current file from filelist
    
    .
    .It Ao CTRL+delete Ac Bq delete
    
    Remove current file from filelist and delete it
    
    .
    .It Ao keypad left Ac , Ao Ctrl+Left Ac Bq scroll_left
    
    Scroll to the left
    
    .
    .It Ao keypad right Ac , Ao Ctrl+Right Ac Bq scroll_right
    
    Scroll to the right
    
    .
    .It Ao keypad up Ac , Ao Ctrl+Up Ac Bq scroll_up
    
    .
    .It Ao keypad down Ac , Ao Ctrl+Down Ac Bq scroll_down
    
    Scroll down.
    Note that the scroll keys work without anti-aliasing for performance reasons,
    hit the render key after scrolling to antialias the image.
    
    .It Aq Alt+Left Bq scroll_left_page
    
    Birte Kristina Friesel's avatar
    Birte Kristina Friesel committed
    .
    Scroll to the left by one page
    .
    
    .It Aq Alt+Right Bq scroll_right_page
    
    Birte Kristina Friesel's avatar
    Birte Kristina Friesel committed
    .
    Scroll to the right by one page
    .
    
    .It Aq Alt+Up Bq scroll_up_page
    
    Birte Kristina Friesel's avatar
    Birte Kristina Friesel committed
    .
    Scroll up by one page
    .
    
    Birte Kristina Friesel's avatar
    Birte Kristina Friesel committed
    .It Aq Alt+Down Bq scroll_down_page
    
    Birte Kristina Friesel's avatar
    Birte Kristina Friesel committed
    .
    Scroll down by one page
    .
    
    .It Ao keypad begin Ac Bq render
    
    .
    .It Ao keypad + Ac , Ao Up Ac Bq zoom_in
    
    .
    .It Ao keypad - Ac , Ao Down Ac Bq zoom_out
    
    .
    .It Ao keypad * Ac Bq zoom_default
    
    .
    .It Ao keypad / Ac Bq zoom_fit
    
    Zoom to fit the window size
    
    Birte Kristina Friesel's avatar
    Birte Kristina Friesel committed
    The following keys bindings are used for the
    .Nm
    menu:
    
    .
    .Bl -tag -width indent
    .
    .It Ao Escape Ac Bq menu_close
    
    Close the menu
    .
    .It Ao Up Ac Bq menu_up
    
    Highlight previous menu item
    .
    .It Ao Down Ac Bq menu_down
    
    Highlight next menu item
    .
    .It Ao Left Ac Bq menu_parent
    
    Highlight parent menu item
    .
    .It Ao Right Ac Bq menu_child
    
    Highlight child menu item
    .
    .It Ao Return Ac , Ao Space Ac Bq menu_select
    
    Select highlighted menu item
    .
    .El
    
    .Sh BUTTONS CONFIG SYNTAX
    .
    This works like the keys config file: the entries are of the form
    .Qq Ar action Op Ar binding .
    .
    .Pp
    .
    Each
    .Ar binding
    is a button name.  It may optionally start with modifiers for things like
    Control, in which case
    .Ar binding
    looks like
    .Ar mod Ns No - Ns Ar button
    .Pq for example "C-1" for Ctrl + Left button .
    .
    .Pp
    .
    For the available modifiers, see
    .Sx KEYS CONFIGURATION SYNTAX .
    .
    .
    .Ss BUTTONS
    .
    In an image window, the following buttons may be used
    .Pq The strings in Bo square brackets Bc are the config action names :
    .
    .Bl -tag -width indent
    .
    .It Bq reload
    .
    Reload current image
    .
    .It 1 Ao left mouse button Ac Bq pan
    .
    pan the current image
    .
    .It 2 Ao middle mouse button Ac Bq zoom
    .
    Zoom the current image
    .
    .It 3 Ao right mouse button Ac Bq menu
    .
    Toggle menu
    .
    .It 4 Ao mousewheel down Ac Bq prev
    .
    Show previous image
    .
    .It 5 Ao mousewheel up Ac Bq next
    .
    Show next image
    .
    .It Ctrl+1 Bq blur
    .
    Blur current image
    .
    .It Ctrl+2 Bq rotate
    .
    Rotate current image
    .
    .El
    .
    .
    
    .Sh MOUSE ACTIONS
    
    When viewing an image, by default mouse button 1 pans
    .Pq moves the image around
    or, when only clicked, moves to the next image
    .Pq slideshow mode only ;
    button 2 zooms
    .Po click and drag left->right to zoom in, right->left to zoom out, click once
    to restore zoom to 100%
    .Pc ;
    and mouse button 3 opens the menu.
    
    CTRL+Button 1 blurs or sharpens the image
    .Pq drag left to blur, right to sharpen ;
    CTRL+Button 2 rotates the image around the center point.
    
    A note about pan and zoom modes:
    In pan mode, if you reach a window border but haven't yet panned to the end of
    the image,
    .Nm
    will warp your cursor to the opposite border so you can continue panning.
    
    When clicking the zoom button and immediately releasing it, the image will be
    back at 100% zoom.  When clicking it and moving the mouse while holding the
    
    button down, the zoom will be continued at the previous zoom level.  The zoom
    will always happen so that the pixel on which you entered the zoom mode
    remains stationary.  So, to enlarge a specific part of an image, click the
    zoom button on that part.
    
    In slideshow mode,
    .Nm
    handles the following signals:
    
    .Sh USAGE EXAMPLES
    
    Here are some examples of useful option combinations. See also:
    .Aq http://feh.finalrewind.org/examples/
    
    .Bl -tag -width indent
    
    Show all images in /opt/images
    .
    
    .It feh -r /opt/images
    
    Recursively show all images found in /opt/images and subdirectories
    .
    .It feh -rSfilename /opt/images
    
    Same as above, but sort by filename. By default, feh will show files in the
    order it finds them on the hard disk, which is usually somewhat random.
    .
    .It feh -t -Sfilename -E 128 -y 128 -W 1024 /opt/images
    
    Show 128x128 pixel thumbnails, limit window width to 1024 pixels.
    .
    .It feh -t -Sfilename -E 128 -y 128 -W 1024 -P -C /usr/share/fonts/truetype/ttf-dejavu/ -e DejaVuSans/8 /opt/images
    
    Same as above, but enable thumbnail caching in ~/.thumbnails and use a smaller
    font.
    .
    
    .It feh -irFarial/14 -O index.jpg /opt/images
    
    Make an index print of /opt/images and all directories below it, using 14 point
    
    Arial to write the image info under each thumbnail.  Save the image as
    index.jpg and don't display it, just exit.  Note that this even works without
    a running X server
    
    .It feh --unloadable -r /opt/images
    
    Print all unloadable images in /opt/images, recursively
    
    .It feh -f by_width -S width --reverse --list \&.
    .
    Write a list of all images in the directory to by_width, sorted by width
    .Pq widest images first
    .
    
    .It feh -w /opt/images/holidays
    
    Open each image in /opt/images/holidays in its own window
    
    .It feh -FD5 -Sname /opt/images/presentation
    
    Show the images in .../presentation, sorted by name, in fullscreen,
    automatically change to the next image after 5 seconds
    
    .It feh -rSwidth -A Qo mv %F ~/images/\&%N Qc /opt/images
    
    View all images in /opt/images and below, sorted by width, move an image to
    
    ~/image/image_name when enter is pressed
    
    View all images in the current directory, starting with foo.jpg.  All other
    images are still in the slideshow and can be viewed normally
    
    .It feh --info \&"exifgrep '\&(Model\&|DateTimeOriginal\&|FNumber\&|ISO\&|Flash\&)' %F \&| cut -d \&. -f 4-\&" \&.
    
    Show some EXIF information, extracted by exifprobe/exifgrep
    
    .Sh TILING WINDOW MANAGERS
    .
    .Nm
    was created with a floating window layout in mind.  However, as of 2.0.1, it
    has limited support for tiling window managers.
    .
    .Pp
    .
    Specifically, the
    
    .Cm --scale-down No and Cm --auto-zoom
    
    options will detect a tiling environment and scale the image up / down to the
    current window size.  Unfortunately, this causes every image to be rendered
    twice: First in a normal fashion, and then
    .Pq after noticing that the window is being tiled
    again with the correct zoom level.
    .
    .Pp
    .
    
    This is a known bug and will hopefully get fixed some time. For now, it can be
    avoided by using
    
    .Cm --geometry 500x500 Pq or any other geometry .
    
    This will have the same behaviour as
    .Cm --scale-down ,
    but without the flickering.
    
    .Nm
    requires the
    .Cm jpegtran
    binary
    .Pq usually distributed in Qo libjpeg-progs Qc or similar
    for lossless rotation.
    
    To view images from URLs such as http://, you need
    .Nm
    compiled with libcurl support (enabled by default).  See the
    .Sx VERSION
    section.
    
    In a Xinerama setup, fullscreen mode only works properly on screen 0.  Set
    
    to the correct screen number or toggle fullscreen off, then on as a workaround.
    
    Thumbnail mode is somewhat inefficient, and because of that not nearly as fast
    as it could be.
    
    .Ss REPORTING BUGS
    
    Birte Kristina Friesel's avatar
    Birte Kristina Friesel committed
    If you find a bug, please report it to
    
    .Aq derf@finalrewind.org
    
    .Aq http://github.com/derf/feh/issues .
    You are also welcome to direct any feh-related comments/questions/... to #feh
    on irc.oftc.net.
    
    Please include the feh version
    .Aq the output of Qq feh --version ,
    steps to reproduce the bug and (if necessary), images to reproduce it.
    
    .Sh FUTURE PLANS
    
    Plans for the following releases:
    
    .Bl -bullet -compact
    .
    .It
    Make zoom options more intuitive
    .
    .El
    .
    .
    
    Copyright (C) 1999, 2000 by Tom Gilbert (and various contributors).
    Copyright (C) 2010 by Daniel Friesel (and even more contributors).
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to
    deal in the Software without restriction, including without limitation the
    rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
    sell copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in
    all copies of the Software and its documentation and acknowledgment shall be
    given in the documentation and software packages that this Software was
    used.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
    
    THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
    IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    
    Current developer: Daniel Friesel
    
    .Aq derf@finalrewind.org
    
    Original author
    .Pq no longer developing :
    
    Tom Gilbert
    
    .Aq feh_sucks@linuxbrit.co.uk
    
    See also:
    http://feh.finalrewind.org