Krolyxon
Commit 17e2a79

Branches

Refs →

nsxivREADME.md

61 lines · 2.1 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/sbin/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 -w WIDTHxHEIGHT set window width to WIDTH and height to HEIGHT
34 (if HEIGHT is omitted, height is also set to WIDTH)
35
36Use the following keys to control sxiv:
37
38 q Quit sxiv
39 Escape Quit sxiv and return an exit value of 2 (useful for scripting)
40 Space,n Go to the next image
41 Backspace,p Go to the previous image
42 g/G Go to first/last image
43 [/] Go 10 images backward/forward
44 +,= Zoom in
45 - Zoom out
46 h,j,k,l Pan image left/down/up/right
47 <,> Rotate image (counter-)clockwise by 90 degrees
48 f Toggle fullscreen mode (requires an EWMH/NetWM compliant
49 window manager)
50 a Toggle anti-aliasing
51
52Additionally, sxiv can be controlled via the following mouse commands:
53
54 Button1 Go to the next image
55 Button3 Go to the previous image
56 ScrollUp Pan image up
57 ScrollDown Pan image down
58 Shift+ScrollUp Pan image left
59 Shift+ScrollDown Pan image right
60 Ctrl+ScrollUp Zoom in
61 Ctrl+ScrollDown Zoom out