Krolyxon
Commit 8fb3110

Branches

Refs →

nsxivREADME.md

71 lines · 2.6 KB · Markdown

1sxiv: Simple (or small or suckless) X Image Viewer
2
3sxiv is a really simple alternative to feh and qiv. Its only dependency is
4imlib2. The primary goal for writing sxiv is to create an image viewer, which
5only implements the most basic features required for fast image viewing. It
6works nicely with tiling window managers and its code base should be kept small
7and clean to make it easy for you to dig into it and customize it for your
8needs.
9
10Installation
11------------
12sxiv is built using the commands:
13
14 $ make
15 # make install
16
17Please note, that the latter one requires root privileges.
18By default, sxiv is installed using the prefix "/usr/local", so the full path
19of the executable will be "/usr/local/bin/sxiv".
20
21You can install it into a directory of your choice by changing the second
22command to:
23
24 # PREFIX="/your/dir" make install
25
26All build-time specific settings can be found in the file "config.h". Please
27check and change them, so that they fit your needs.
28
29Usage
30-----
31sxiv 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 -g GEOMETRY Set window position and size
36 (see section GEOMETRY SPECIFICATIONS of X(7))
37 -p Pixelize, i.e. turn off image anti-aliasing
38 -q Be quiet, disable warnings
39 -s Scale all images to fit into window
40 -v Print version information and exit
41 -Z Same as `-z 100'
42 -z ZOOM Scale all images to current zoom level, use ZOOM at startup
43
44Use the following keys to control sxiv:
45
46 q Quit sxiv
47 Escape Quit sxiv and return an exit value of 2 (useful for scripting)
48 n,Space Go to the next image
49 p,Backspace Go to the previous image
50 g/G Go to first/last image
51 [/] Go 10 images backward/forward
52 +,= Zoom in
53 - Zoom out
54 h,j,k,l Pan image left/down/up/right (also with arrow keys)
55 <,> Rotate image (counter-)clockwise by 90 degrees
56 f Toggle fullscreen mode (requires an EWMH/NetWM compliant
57 window manager)
58 a Toggle anti-aliasing
59 r Reload image
60
61Additionally, sxiv can be controlled via the following mouse commands:
62
63 Button1 Go to the next image
64 Button2 Drag image with mouse while keeping it pressed
65 Button3 Go to the previous image
66 ScrollUp Pan image up
67 ScrollDown Pan image down
68 Shift+ScrollUp Pan image left
69 Shift+ScrollDown Pan image right
70 Ctrl+ScrollUp Zoom in
71 Ctrl+ScrollDown Zoom out