Krolyxon
Commit bb85d3d

Branches

Refs →

nsxivREADME.md

95 lines · 3.8 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 besides
4xlib is imlib2. The primary goal for writing sxiv is to create an image viewer,
5which only implements the most basic features required for fast image viewing.
6It works nicely with tiling window managers and its code base should be kept
7small and clean to make it easy for you to dig into it and customize it for
8your 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 -a Display all given files, do not filter out unsupported files
38 (shorter startup time for long file list or slow file types)
39 -C Remove all orphaned cache files from thumbnail cache and exit
40 -d Scale all images to 100%, but fit large images into window
41 -F Use size-hints to make the window fixed/floating
42 -f Start in fullscreen mode
43 -g GEOMETRY Set window position and size
44 (see section GEOMETRY SPECIFICATIONS of X(7))
45 -p Pixelize, i.e. turn off image anti-aliasing
46 -q Be quiet, disable warnings
47 -r Search given directories recursively for images
48 -s Scale all images to fit into window
49 -t Start in thumbnail mode
50 -v Print version information and exit
51 -Z Same as `-z 100'
52 -z ZOOM Scale all images to current zoom level, use ZOOM at startup
53
54The following key mappings are available; differences between image view and
55thumbnail mode are denoted via brackets:
56
57 q Quit sxiv
58 Return Switch to thumbnail mode [open selected image]
59
60 n,Space Go to the next image
61 p,Backspace Go to the previous image
62 g/G Go to [select] first/last image
63 [/] Go 10 images backward/forward
64
65 +,= Zoom in
66 - Zoom out
67 0 Set zoom level to 100%
68 w Fit image into window
69
70 h,j,k,l Pan image [move selection] left/down/up/right
71 (also with arrow keys)
72
73 <,> Rotate image (counter-)clockwise by 90 degrees
74
75 W Resize window to fit image
76 f Toggle fullscreen mode (requires an EWMH/NetWM compliant
77 window manager)
78
79 a Toggle anti-aliasing
80 A Toggle visibility of alpha-channel, i.e. transparency
81 D Remove image from file list and go to [select] next image
82 r Reload image
83
84Additionally, the following mouse mappings are available:
85
86 Button1 Go to the next image
87 [select image/open image if it is already selected]
88 Button2 Drag image with mouse while keeping it pressed
89 Button3 Go to the previous image
90 ScrollUp Pan image up [scroll up one thumbnail row]
91 ScrollDown Pan image down [scroll down one thumbnail row]
92 Shift+ScrollUp Pan image left
93 Shift+ScrollDown Pan image right
94 Ctrl+ScrollUp Zoom in
95 Ctrl+ScrollDown Zoom out