| 1 | sxiv: Simple (or small or suckless) X Image Viewer |
| 2 | |
| 3 | sxiv is a really simple alternative to feh and qiv. Its only dependency is |
| 4 | imlib2. The primary goal for writing sxiv is to create an image viewer, which |
| 5 | only implements the most basic features required for fast image viewing. It |
| 6 | works nicely with tiling window managers and its code base should be kept small |
| 7 | and clean to make it easy for you to dig into it and customize it for your |
| 8 | 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 supports the following command-line options: |
| 32 | |
| 33 | -d scale all images to 100%, but fit large images into window |
| 34 | -f start in fullscreen mode |
| 35 | -p pixelize, i.e. turn off image anti-aliasing |
| 36 | -s scale all images to fit into window |
| 37 | -v print version information and exit |
| 38 | -W enable printing of warnings |
| 39 | -w WIDTHxHEIGHT |
| 40 | set window width to WIDTH and height to HEIGHT |
| 41 | (if HEIGHT is omitted, height is also set to WIDTH) |
| 42 | -Z same as `-z 100' |
| 43 | -z ZOOM scale all images to current zoom level, use ZOOM at startup |
| 44 | |
| 45 | Use the following keys to control sxiv: |
| 46 | |
| 47 | q Quit sxiv |
| 48 | Escape Quit sxiv and return an exit value of 2 (useful for scripting) |
| 49 | n,Space Go to the next image |
| 50 | p,Backspace Go to the previous image |
| 51 | g/G Go to first/last image |
| 52 | [/] Go 10 images backward/forward |
| 53 | +,= Zoom in |
| 54 | - Zoom out |
| 55 | h,j,k,l Pan image left/down/up/right (also with arrow keys) |
| 56 | <,> Rotate image (counter-)clockwise by 90 degrees |
| 57 | f Toggle fullscreen mode (requires an EWMH/NetWM compliant |
| 58 | window manager) |
| 59 | a Toggle anti-aliasing |
| 60 | |
| 61 | Additionally, sxiv can be controlled via the following mouse commands: |
| 62 | |
| 63 | Button1 Go to the next image |
| 64 | Button3 Go to the previous image |
| 65 | ScrollUp Pan image up |
| 66 | ScrollDown Pan image down |
| 67 | Shift+ScrollUp Pan image left |
| 68 | Shift+ScrollDown Pan image right |
| 69 | Ctrl+ScrollUp Zoom in |
| 70 | Ctrl+ScrollDown Zoom out |