Krolyxon
Commit 7b49740

Branches

Refs →

nsxivREADME.md

76 lines · 2.9 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 Use size-hints to make the window fixed/floating
35 -f Start in fullscreen mode
36 -g GEOMETRY Set window position and size
37 (see section GEOMETRY SPECIFICATIONS of X(7))
38 -p Pixelize, i.e. turn off image anti-aliasing
39 -q Be quiet, disable warnings
40 -r Search given directories recursively for images
41 -s Scale all images to fit into window
42 -v Print version information and exit
43 -Z Same as `-z 100'
44 -z ZOOM Scale all images to current zoom level, use ZOOM at startup
45
46Use the following keys to control sxiv:
47
48 q Quit sxiv
49 Escape Quit sxiv and return an exit value of 2 (useful for scripting)
50 n,Space Go to the next image
51 p,Backspace Go to the previous image
52 g/G Go to first/last image
53 [/] Go 10 images backward/forward
54 +,= Zoom in
55 - Zoom out
56 0 Set zoom level to 100%
57 w Fit image into window
58 h,j,k,l Pan image left/down/up/right (also with arrow keys)
59 <,> Rotate image (counter-)clockwise by 90 degrees
60 W Resize window to fit image
61 f Toggle fullscreen mode (requires an EWMH/NetWM compliant
62 window manager)
63 a Toggle anti-aliasing
64 r Reload image
65
66Additionally, sxiv can be controlled via the following mouse commands:
67
68 Button1 Go to the next image
69 Button2 Drag image with mouse while keeping it pressed
70 Button3 Go to the previous image
71 ScrollUp Pan image up
72 ScrollDown Pan image down
73 Shift+ScrollUp Pan image left
74 Shift+ScrollDown Pan image right
75 Ctrl+ScrollUp Zoom in
76 Ctrl+ScrollDown Zoom out