Krolyxon
Commit d369f10

Branches

Refs →

nsxivREADME.md

128 lines · 4.7 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
10Features
11--------
12
13* Basic image operations, e.g. zooming, panning, rotating
14* Customizable key and mouse button mappings (in *config.h*)
15* Thumbnail mode: grid of selectable previews of all images
16* Ability to cache thumbnails for fast re-loading
17* Basic support for multi-frame images
18* Display image information in window title
19
20Additional features, that need to be enabled at compile-time (in *config.h*),
21because they depend on additional libraries:
22
23* Load all frames from GIF files and play GIF animations (requires giflib)
24* Auto-orientate JPEG images according to their EXIF tags (requires libexif)
25
26Screenshots
27-----------
28
29Image mode:
30
31 <img src="http://github.com/muennich/sxiv/raw/master/sample/image.png">
32
33Thumbnail mode:
34
35 <img src="http://github.com/muennich/sxiv/raw/master/sample/thumb.png">
36
37Installation
38------------
39sxiv is built using the commands:
40
41 $ make
42 # make install
43
44Please note, that the latter one requires root privileges.
45By default, sxiv is installed using the prefix "/usr/local", so the full path
46of the executable will be "/usr/local/bin/sxiv".
47
48You can install sxiv into a directory of your choice by changing the second
49command to:
50
51 # make PREFIX="/your/dir" install
52
53The build-time specific settings of sxiv can be found in the file *config.h*.
54Please check and change them, so that they fit your needs.
55If the file *config.h* does not already exist, then you have to create it with
56the following command:
57
58 $ make config.h
59
60Usage
61-----
62sxiv has two modes of operation: image and thumbnail mode. The default is
63image mode, in which only the current image is shown. In thumbnail mode a grid
64of small previews is displayed, making it easy to choose an image to open.
65
66sxiv supports the following command-line options:
67
68 -c Remove all orphaned cache files from thumbnail cache and exit
69 -d Scale all images to 100%, but fit large images into window
70 -F Use size-hints to make the window fixed/floating
71 -f Start in fullscreen mode
72 -g GEOMETRY Set window position and size
73 (see section GEOMETRY SPECIFICATIONS of X(7))
74 -n NUM Start at picture NUM
75 -p Pixelize, i.e. turn off image anti-aliasing
76 -q Be quiet, disable warnings
77 -r Search given directories recursively for images
78 -s Scale all images to fit into window
79 -t Start in thumbnail mode
80 -v Print version information and exit
81 -Z Same as `-z 100'
82 -z ZOOM Scale all images to current zoom level, use ZOOM at startup
83
84The following key mappings are available; differences between image view and
85thumbnail mode are denoted via brackets:
86
87 q Quit sxiv
88 Return Switch to thumbnail mode [open selected image]
89
90 n,Space Go to the next image
91 p,Backspace Go to the previous image
92 g,G Go to [select] first/last image
93 [,] Go 10 images backward/forward
94
95 Ctrl-n,p Go to the next/previous frame of a multi-frame image
96 Ctrl-Space Play/pause animation of a multi-frame image
97
98 +,= Zoom in
99 - Zoom out
100 0 Set zoom level to 100%
101 w Fit image into window
102
103 h,j,k,l Pan image [move selection] left/down/up/right
104 (also with arrow keys)
105 H,J,K,L Pan to left/bottom/top/right image edge
106 Ctrl-h,j,k,l Pan image one window width/height left/down/up/right
107 (also with Ctrl-arrow keys)
108
109 <,> Rotate image (counter-)clockwise by 90 degrees
110
111 W Resize window to fit image
112 f Toggle fullscreen mode (requires an EWMH/NetWM compliant
113 window manager)
114
115 a Toggle anti-aliasing
116 A Toggle visibility of alpha-channel, i.e. transparency
117 D Remove image from file list and go to [select] next image
118 r Reload image
119
120Additionally, the following mouse mappings are available:
121
122 Button1 Go to the next image
123 [select image/open image if it is already selected]
124 Button2 Drag image with mouse while keeping it pressed
125 Button3 Go to the previous image
126 Scroll Pan image up/down [scroll up/down one thumbnail row]
127 Shift+Scroll Pan image left/right
128 Ctrl+Scroll Zoom in/out