Krolyxon
Commit dafe7ea

Branches

Refs →

nsxivREADME.md

95 lines · 3.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 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 -d Scale all images to 100%, but fit large images into window
38 -F Use size-hints to make the window fixed/floating
39 -f Start in fullscreen mode
40 -g GEOMETRY Set window position and size
41 (see section GEOMETRY SPECIFICATIONS of X(7))
42 -p Pixelize, i.e. turn off image anti-aliasing
43 -q Be quiet, disable warnings
44 -r Search given directories recursively for images
45 -s Scale all images to fit into window
46 -t Start in thumbnail mode
47 -v Print version information and exit
48 -Z Same as `-z 100'
49 -z ZOOM Scale all images to current zoom level, use ZOOM at startup
50
51Use the following keys to control the basic behaviour of sxiv:
52
53 q Quit sxiv
54 Escape Quit sxiv and return an exit value of 2 (useful for scripting)
55 f Toggle fullscreen mode (requires an EWMH/NetWM compliant
56 window manager)
57
58Inside image view mode, the following key mappings are available:
59
60 n,Space Go to the next image
61 p,Backspace Go to the previous image
62 g/G Go to first/last image
63 [/] Go 10 images backward/forward
64 +,= Zoom in
65 - Zoom out
66 0 Set zoom level to 100%
67 w Fit image into window
68 h,j,k,l Pan image left/down/up/right (also with arrow keys)
69 <,> Rotate image (counter-)clockwise by 90 degrees
70 W Resize window to fit image
71 a Toggle anti-aliasing
72 r Reload image
73 Return Switch to thumbnail mode
74
75Additionally, the image view offers the following mouse commands:
76
77 Button1 Go to the next image
78 Button2 Drag image with mouse while keeping it pressed
79 Button3 Go to the previous image
80 ScrollUp Pan image up
81 ScrollDown Pan image down
82 Shift+ScrollUp Pan image left
83 Shift+ScrollDown Pan image right
84 Ctrl+ScrollUp Zoom in
85 Ctrl+ScrollDown Zoom out
86
87In thumbnail mode, the following key and mouse mappings are available:
88
89 h,j,k,l Move selection left/down/up/right (also with arrow keys)
90 g/G Move selection to first/last image
91 Return Open selected image
92
93 Button1 Select image/open image if it is already selected
94 ScrollUp Scroll up one row
95 ScrollDown Scroll down one row