| 1 | sxiv: Simple (or small or suckless) X Image Viewer |
| 2 | |
| 3 | sxiv is an alternative to feh and qiv. Its only dependency besides xlib is |
| 4 | imlib2. The primary goal for writing sxiv is to create an image viewer, which |
| 5 | only has the most basic features required for fast image viewing (the ones I |
| 6 | want). It works nicely with tiling window managers and its code base should be |
| 7 | kept small and clean to make it easy for you to dig into it and customize it |
| 8 | for your needs. |
| 9 | |
| 10 | Installation |
| 11 | ------------ |
| 12 | sxiv is built using the commands: |
| 13 | |
| 14 | $ make |
| 15 | # make install |
| 16 | |
| 17 | Please note, that the latter one requires root privileges. |
| 18 | By default, sxiv is installed using the prefix "/usr/local", so the full path |
| 19 | of the executable will be "/usr/local/bin/sxiv". |
| 20 | |
| 21 | You can install it into a directory of your choice by changing the second |
| 22 | command to: |
| 23 | |
| 24 | # PREFIX="/your/dir" make install |
| 25 | |
| 26 | All build-time specific settings can be found in the file "config.h". Please |
| 27 | check and change them, so that they fit your needs. |
| 28 | |
| 29 | Usage |
| 30 | ----- |
| 31 | sxiv has two modes of operation: image and thumbnail mode. The default is image |
| 32 | mode, in which only the current image is shown. In thumbnail mode a grid of |
| 33 | small previews is displayed, making it easy to choose an image to open. |
| 34 | |
| 35 | sxiv supports the following command-line options: |
| 36 | |
| 37 | -c Remove all orphaned cache files from thumbnail cache and exit |
| 38 | -d Scale all images to 100%, but fit large images into window |
| 39 | -F Use size-hints to make the window fixed/floating |
| 40 | -f Start in fullscreen mode |
| 41 | -g GEOMETRY Set window position and size |
| 42 | (see section GEOMETRY SPECIFICATIONS of X(7)) |
| 43 | -p Pixelize, i.e. turn off image anti-aliasing |
| 44 | -q Be quiet, disable warnings |
| 45 | -r Search given directories recursively for images |
| 46 | -s Scale all images to fit into window |
| 47 | -t Start in thumbnail mode |
| 48 | -v Print version information and exit |
| 49 | -Z Same as `-z 100' |
| 50 | -z ZOOM Scale all images to current zoom level, use ZOOM at startup |
| 51 | |
| 52 | The following key mappings are available; differences between image view and |
| 53 | thumbnail mode are denoted via brackets: |
| 54 | |
| 55 | q Quit sxiv |
| 56 | Return Switch to thumbnail mode [open selected image] |
| 57 | |
| 58 | n,Space Go to the next image |
| 59 | p,Backspace Go to the previous image |
| 60 | g/G Go to [select] first/last image |
| 61 | [/] Go 10 images backward/forward |
| 62 | |
| 63 | +,= Zoom in |
| 64 | - Zoom out |
| 65 | 0 Set zoom level to 100% |
| 66 | w Fit image into window |
| 67 | |
| 68 | h,j,k,l Pan image [move selection] left/down/up/right |
| 69 | (also with arrow keys) |
| 70 | H,J,K,L Pan to left/bottom/top/right image edge |
| 71 | |
| 72 | <,> Rotate image (counter-)clockwise by 90 degrees |
| 73 | |
| 74 | W Resize window to fit image |
| 75 | f Toggle fullscreen mode (requires an EWMH/NetWM compliant |
| 76 | window manager) |
| 77 | |
| 78 | a Toggle anti-aliasing |
| 79 | A Toggle visibility of alpha-channel, i.e. transparency |
| 80 | D Remove image from file list and go to [select] next image |
| 81 | r Reload image |
| 82 | |
| 83 | Additionally, the following mouse mappings are available: |
| 84 | |
| 85 | Button1 Go to the next image |
| 86 | [select image/open image if it is already selected] |
| 87 | Button2 Drag image with mouse while keeping it pressed |
| 88 | Button3 Go to the previous image |
| 89 | ScrollUp Pan image up [scroll up one thumbnail row] |
| 90 | ScrollDown Pan image down [scroll down one thumbnail row] |
| 91 | Shift+ScrollUp Pan image left |
| 92 | Shift+ScrollDown Pan image right |
| 93 | Ctrl+ScrollUp Zoom in |
| 94 | Ctrl+ScrollDown Zoom out |