Krolyxon
Commit c2320a2

Branches

Refs →

nsxivREADME.md

100 lines · 4.0 KB · Markdown

1sxiv: Simple (or small or suckless) X Image Viewer
2
3sxiv is an alternative to feh and qiv. Its only dependency besides xlib is
4imlib2. The primary goal for writing sxiv is to create an image viewer, which
5only has the most basic features required for fast image viewing (the ones I
6want). It has vi key bindings and works nicely with tiling window managers.
7Its code base should be kept small and clean to make it easy for you to dig
8into it and customize it for your needs.
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 has two modes of operation: image and thumbnail mode. The default is image
32mode, in which only the current image is shown. In thumbnail mode a grid of
33small previews is displayed, making it easy to choose an image to open.
34
35sxiv 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 -n NUM Start at picture NUM
44 -p Pixelize, i.e. turn off image anti-aliasing
45 -q Be quiet, disable warnings
46 -r Search given directories recursively for images
47 -s Scale all images to fit into window
48 -t Start in thumbnail mode
49 -v Print version information and exit
50 -Z Same as `-z 100'
51 -z ZOOM Scale all images to current zoom level, use ZOOM at startup
52
53The following key mappings are available; differences between image view and
54thumbnail mode are denoted via brackets:
55
56 q Quit sxiv
57 Return Switch to thumbnail mode [open selected image]
58
59 n,Space Go to the next image
60 p,Backspace Go to the previous image
61 g,G Go to [select] first/last image
62 [,] Go 10 images backward/forward
63
64 Ctrl-n,p Go to the next/previous frame of a multi-frame image
65 Ctrl-Space Play/pause animation of a multi-frame image
66
67 +,= Zoom in
68 - Zoom out
69 0 Set zoom level to 100%
70 w Fit image into window
71
72 h,j,k,l Pan image [move selection] left/down/up/right
73 (also with arrow keys)
74 H,J,K,L Pan to left/bottom/top/right image edge
75 Ctrl-h,j,k,l Pan image one window width/height left/down/up/right
76 (also with Ctrl-arrow keys)
77
78 <,> Rotate image (counter-)clockwise by 90 degrees
79
80 W Resize window to fit image
81 f Toggle fullscreen mode (requires an EWMH/NetWM compliant
82 window manager)
83
84 a Toggle anti-aliasing
85 A Toggle visibility of alpha-channel, i.e. transparency
86 D Remove image from file list and go to [select] next image
87 r Reload image
88
89Additionally, the following mouse mappings are available:
90
91 Button1 Go to the next image
92 [select image/open image if it is already selected]
93 Button2 Drag image with mouse while keeping it pressed
94 Button3 Go to the previous image
95 ScrollUp Pan image up [scroll up one thumbnail row]
96 ScrollDown Pan image down [scroll down one thumbnail row]
97 Shift+ScrollUp Pan image left
98 Shift+ScrollDown Pan image right
99 Ctrl+ScrollUp Zoom in
100 Ctrl+ScrollDown Zoom out