Krolyxon
Commit 264a345

Branches

Refs →

nsxivREADME.md

258 lines · 8.5 KB · Markdown

1sxiv
2====
3
4**Simple X Image Viewer**
5
6sxiv is an alternative to feh and qiv. Its only dependencies besides xlib are
7imlib2 and giflib. The primary goal for writing sxiv is to create an image
8viewer, which only has the most basic features required for fast image viewing
9(the ones I want). It has vi key bindings and works nicely with tiling window
10managers. Its code base should be kept small and clean to make it easy for you
11to dig into it and customize it for your needs.
12
13
14Features
15--------
16
17* Basic image operations, e.g. zooming, panning, rotating
18* Customizable key and mouse button mappings (in *config.h*)
19* Thumbnail mode: grid of selectable previews of all images
20* Ability to cache thumbnails for fast re-loading
21* Basic support for multi-frame images
22* Load all frames from GIF files and play GIF animations
23* Display image information in status bar
24
25
26Screenshots
27-----------
28
29**Image mode:**
30
31![Image](http://muennich.github.com/sxiv/img/image.png "Image mode")
32
33**Thumbnail mode:**
34
35![Thumb](http://muennich.github.com/sxiv/img/thumb.png "Thumb mode")
36
37
38Installation
39------------
40
41sxiv is built using the commands:
42
43 $ make
44 # make install
45
46Please note, that the latter one requires root privileges.
47By default, sxiv is installed using the prefix "/usr/local", so the full path
48of the executable will be "/usr/local/bin/sxiv".
49
50You can install sxiv into a directory of your choice by changing the second
51command to:
52
53 # make PREFIX="/your/dir" install
54
55The build-time specific settings of sxiv can be found in the file *config.h*.
56Please check and change them, so that they fit your needs.
57If the file *config.h* does not already exist, then you have to create it with
58the following command:
59
60 $ make config.h
61
62
63Usage
64-----
65
66sxiv has two modes of operation: image and thumbnail mode. The default is
67image mode, in which only the current image is shown. In thumbnail mode a grid
68of small previews is displayed, making it easy to choose an image to open.
69
70**Command line options:**
71
72 -b Do not show info bar on bottom of window
73 -c Remove all orphaned cache files from thumbnail cache and exit
74 -d Scale all images to 100%, but fit large images into window
75 -F Use size-hints to make the window fixed/floating
76 -f Start in fullscreen mode
77 -g GEOMETRY Set window position and size
78 (see section GEOMETRY SPECIFICATIONS of X(7))
79 -i Read file list from stdin
80 -n NUM Start at picture NUM
81 -N NAME Set X window resource name to NAME
82 -o Write file list to stdout when quitting
83 -p Pixelize, i.e. turn off image anti-aliasing
84 -q Be quiet, disable warnings
85 -r Search given directories recursively for images
86 -s Scale all images to fit into window
87 -t Start in thumbnail mode
88 -v Print version information and exit
89 -Z Same as `-z 100'
90 -z ZOOM Scale all images to current zoom level, use ZOOM at startup
91
92**Key mappings:**
93
94 q Quit sxiv
95 Return Switch to thumbnail mode / open selected image
96
97 0-9 Prefix the next command with a number (denoted via [count])
98
99 g Go to first image
100 G Go to the last image, or image number [count]
101
102 f Toggle fullscreen mode (requires an EWMH/NetWM compliant
103 window manager)
104 b Toggle visibility of info bar on bottom of window
105 A Toggle visibility of alpha-channel, i.e. transparency
106
107 r Reload image
108 R Reload all thumbnails
109 D Remove image from file list and go to next image
110
111*Thumbnail mode:*
112
113 h,j,k,l Move selection left/down/up/right [count] times
114 Ctrl-j,k Scroll thumbnail grid one window height down/up
115
116*Image mode:*
117
118 n,Space Go [count] images forward
119 p,Backspace Go [count] images backward
120 [,] Go [count] * 10 images backward/forward
121
122 Ctrl-n,p Go to the next/previous frame of a multi-frame image
123 Ctrl-Space Play/pause animation of a multi-frame image
124
125 + Zoom in
126 - Zoom out
127 = Set zoom level to 100%, or [count]%
128 w Fit image into window
129 e Fit image width to window width
130 E Fit image height to window height
131
132 h,j,k,l Pan image 1/5 of window width/height or [count] pixels
133 left/down/up/right (also with arrow keys)
134 H,J,K,L Pan to left/bottom/top/right image edge
135 Ctrl-h,j,k,l Pan image one window width/height left/down/up/right
136 (also with Ctrl-arrow keys)
137
138 <,> Rotate image (counter-)clockwise by 90 degrees
139 \,| Flip image horizontally/vertically
140
141 a Toggle anti-aliasing
142 W Resize window to fit image
143
144**Mouse button mappings:**
145
146*Image mode:*
147
148 Button1 Go to the next image
149 Button2 Drag image with mouse while keeping it pressed
150 Button3 Go to the previous image
151 Scroll Pan image up/down
152 Shift+Scroll Pan image left/right
153 Ctrl+Scroll Zoom in/out
154
155
156Download & Changelog
157--------------------
158
159You can [browse](https://github.com/muennich/sxiv) the source code repository
160on GitHub or get a copy using git with the following command:
161
162 git clone https://github.com/muennich/sxiv.git
163
164**Stable releases**
165
166**[v1.1](https://github.com/muennich/sxiv/archive/1.1.tar.gz)**
167*(March 30, 2013)*
168
169 * Added status bar on bottom of window with customizable content
170 * New keyboard shortcuts `\`/`|`: flip image vertically/horizontally
171 * New keyboard shortcut `Ctrl-6`: go to last/alternate image
172 * Added own EXIF orientation handling, removed dependency on libexif
173 * Fixed various bugs
174
175**[v1.0](https://github.com/muennich/sxiv/archive/1.0.tar.gz)**
176*(October 31, 2011)*
177
178 * Support for multi-frame images & GIF animations
179 * POSIX compliant (IEEE Std 1003.1-2001)
180
181**[v0.9](https://github.com/muennich/sxiv/archive/0.9.tar.gz)**
182*(August 17, 2011)*
183
184 * Made key and mouse mappings fully configurable in config.h
185 * Complete code refactoring
186
187**[v0.8.2](https://github.com/muennich/sxiv/archive/0.8.2.tar.gz)**
188*(June 29, 2011)*
189
190 * POSIX-compliant Makefile; compiles under NetBSD
191
192**[v0.8.1](https://github.com/muennich/sxiv/archive/0.8.1.tar.gz)**
193*(May 8, 2011)*
194
195 * Fixed fullscreen under window managers, which are not fully EWMH-compliant
196
197**[v0.8](https://github.com/muennich/sxiv/archive/0.8.tar.gz)**
198*(April 18, 2011)*
199
200 * Support for thumbnail caching, only enabled if directory `~/.sxiv/` exists
201 * Ability to run external commands (e.g. jpegtran, convert) on current image
202
203**[v0.7](https://github.com/muennich/sxiv/archive/0.7.tar.gz)**
204*(February 26, 2011)*
205
206 * Sort directory entries when using `-r` command line option
207 * Hide cursor in image mode
208 * Full functional thumbnail mode, use Return key to switch between image and
209 thumbnail mode
210
211**[v0.6](https://github.com/muennich/sxiv/archive/0.6.tar.gz)**
212*(February 16, 2011)*
213
214 * Bug fix: Correctly display filenames with umlauts in window title
215 * Basic support of thumbnails
216
217**[v0.5](https://github.com/muennich/sxiv/archive/0.5.tar.gz)**
218*(February 6, 2011)*
219
220 * New command line option: `-r`: open all images in given directories
221 * New key shortcuts: `w`: resize image to fit into window; `W`: resize window
222 to fit to image
223
224**[v0.4](https://github.com/muennich/sxiv/archive/0.4.tar.gz)**
225*(February 1, 2011)*
226
227 * New command line option: `-F`, `-g`: use fixed window dimensions and apply
228 a given window geometry
229 * New key shortcut: `r`: reload current image
230
231**[v0.3.1](https://github.com/muennich/sxiv/archive/0.3.1.tar.gz)**
232*(January 30, 2011)*
233
234 * Bug fix: Do not set setuid bit on executable when using `make install`
235 * Pan image with mouse while pressing middle mouse button
236
237**[v0.3](https://github.com/muennich/sxiv/archive/0.3.tar.gz)**
238*(January 29, 2011)*
239
240 * New command line options: `-d`, `-f`, `-p`, `-s`, `-v`, `-w`, `-Z`, `-z`
241 * More mouse mappings: Go to next/previous image with left/right click,
242 scroll image with mouse wheel (horizontally if Shift key is pressed),
243 zoom image with mouse wheel if Ctrl key is pressed
244
245**[v0.2](https://github.com/muennich/sxiv/archive/0.2.tar.gz)**
246*(January 23, 2011)*
247
248 * Bug fix: Handle window resizes correctly
249 * New keyboard shortcuts: `g`/`G`: go to first/last image; `[`/`]`: go 10
250 images back/forward
251 * Support for mouse wheel zooming (by Dave Reisner)
252 * Added fullscreen mode
253
254**[v0.1](https://github.com/muennich/sxiv/archive/0.1.tar.gz)**
255*(January 21, 2011)*
256
257 * Initial release
258