Krolyxon
Commit fe3a1e3

Branches

Refs →

nsxivsxiv.1

400 lines · 7.5 KB · Groff/troff

1.TH SXIV 1 sxiv\-VERSION
2.SH NAME
3sxiv \- Simple X Image Viewer
4.SH SYNOPSIS
5.B sxiv
6.RB [ \-abcfhioqrtvZ ]
7.RB [ \-G
8.IR GAMMA ]
9.RB [ \-g
10.IR GEOMETRY ]
11.RB [ \-N
12.IR NAME ]
13.RB [ \-n
14.IR NUM ]
15.RB [ \-S
16.IR DELAY ]
17.RB [ \-s
18.IR MODE ]
19.RB [ \-z
20.IR ZOOM ]
21.IR FILE ...
22.SH DESCRIPTION
23sxiv is a simple image viewer for X. It only has the most basic features
24required for fast image viewing.
25.P
26sxiv has two modes of operation: image and thumbnail mode. The default is image
27mode, in which only the current image is shown. In thumbnail mode a grid of
28small previews is displayed, making it easy to choose an image to open.
29.P
30Please note, that the fullscreen mode requires an EWMH/NetWM compliant window
31manager.
32.SH OPTIONS
33.TP
34.B \-a
35Play animations of multi-frame images.
36.TP
37.B \-b
38Do not show info bar on bottom of window.
39.TP
40.B \-c
41Remove all orphaned cache files from the thumbnail cache directory and exit.
42.TP
43.B \-f
44Start in fullscreen mode.
45.TP
46.BI "\-G " GAMMA
47Set image gamma to GAMMA (-32..32).
48.TP
49.BI "\-g " GEOMETRY
50Set window position and size. See section GEOMETRY SPECIFICATIONS of X(7) for
51more information on GEOMETRY argument.
52.TP
53.BI "\-N " NAME
54Set the resource name of sxiv's X window to NAME.
55.TP
56.BI "\-n " NUM
57Start at picture number NUM.
58.TP
59.B \-h
60Print brief usage information to standard output and exit.
61.TP
62.B \-i
63Read names of files to open from standard input.
64.TP
65.B \-o
66Write list of all marked files to standard output when quitting. In combination
67with
68.B \-i
69sxiv can be used as a visual filter/pipe.
70.TP
71.B \-q
72Be quiet, disable warnings to standard error stream.
73.TP
74.B \-r
75Search the given directories recursively for images to view.
76.TP
77.BI "\-S " DELAY
78Start in slideshow mode. Set the delay between images to DELAY seconds.
79.TP
80.BI "\-s " MODE
81Set scale mode according to MODE character. Supported modes are: [d]own,
82[f]it, [w]idth, [h]eight.
83.TP
84.B \-t
85Start in thumbnail mode.
86.TP
87.B \-v
88Print version information to standard output and exit.
89.TP
90.B \-Z
91The same as `\-z 100'.
92.TP
93.BI "\-z " ZOOM
94Set zoom level to ZOOM percent.
95.SH GENERAL KEYBOARD COMMANDS
96The following keyboard commands are available in both image and thumbnail mode:
97.TP
98.BR 0 \- 9
99Prefix the next command with a number (denoted via
100.IR count ).
101.TP
102.B q
103Quit sxiv.
104.TP
105.B Return
106Switch to thumbnail mode / open selected image in image mode.
107.TP
108.B f
109Toggle fullscreen mode.
110.TP
111.B b
112Toggle visibility of info bar on bottom of window.
113.TP
114.B Ctrl-x
115Send the next key to the external key-handler. See section EXTERNAL KEY HANDLER
116for more information.
117.TP
118.B g
119Go to the first image.
120.TP
121.B G
122Go to the last image, or image number
123.IR count .
124.TP
125.B r
126Reload image.
127.TP
128.B D
129Remove current image from file list and go to next image.
130.TP
131.BR Ctrl-h ", " Ctrl-Left
132Scroll left one screen width.
133.TP
134.BR Ctrl-j ", " Ctrl-Down
135Scroll down one screen height.
136.TP
137.BR Ctrl-k ", " Ctrl-Up
138Scroll up one screen height.
139.TP
140.BR Ctrl-l ", " Ctrl-Right
141Scroll right one screen width.
142.TP
143.B m
144Mark/unmark the current image.
145.TP
146.B M
147Reverse all image marks.
148.TP
149.B Ctrl-m
150Remove all image marks.
151.TP
152.B N
153Go
154.I count
155marked images forward.
156.TP
157.B P
158Go
159.I count
160marked images backward.
161.SH THUMBNAIL KEYBOARD COMMANDS
162The following keyboard commands are only available in thumbnail mode:
163.TP
164.BR h ", " Left
165Move selection left
166.I count
167times.
168.TP
169.BR j ", " Down
170Move selection down
171.I count
172times.
173.TP
174.BR k ", " Up
175Move selection up
176.I count
177times.
178.TP
179.BR l ", " Right
180Move selection right
181.I count
182times.
183.TP
184.B R
185Reload all thumbnails.
186.SH IMAGE KEYBOARD COMMANDS
187The following keyboard commands are only available in image mode:
188.SS Navigate image list
189.TP
190.BR n ", " Space
191Go
192.I count
193images forward.
194.TP
195.BR p ", " Backspace
196Go
197.I count
198images backward.
199.TP
200.B [
201Go
202.I count
203* 10 images backward.
204.TP
205.B ]
206Go
207.I count
208* 10 images forward.
209.SS Handle multi-frame images
210.TP
211.B Ctrl-n
212Go to the next frame of a multi-frame image.
213.TP
214.B Ctrl-p
215Go to the previous frame of a multi-frame image.
216.TP
217.B Ctrl-Space
218Play/stop animations of multi-frame images.
219.SS Panning
220.TP
221.BR h ", " Left
222Scroll image 1/5 of window width or
223.I count
224pixel left.
225.TP
226.BR j ", " Down
227Scroll image 1/5 of window height or
228.I count
229pixel down.
230.TP
231.BR k ", " Up
232Scroll image 1/5 of window height or
233.I count
234pixel up.
235.TP
236.BR l ", " Right
237Scroll image 1/5 of window width or
238.I count
239pixel right.
240.TP
241.B H
242Scroll to left image edge.
243.TP
244.B J
245Scroll to bottom image edge.
246.TP
247.B K
248Scroll to top image edge.
249.TP
250.B L
251Scroll to right image edge.
252.SS Zooming
253.TP
254.BR +
255Zoom in.
256.TP
257.B \-
258Zoom out.
259.TP
260.B =
261Set zoom level to 100%, or
262.IR count %.
263.TP
264.B w
265Set zoom level to 100%, but fit large images into window.
266.TP
267.B W
268Fit image to window.
269.TP
270.B e
271Fit image to window width.
272.TP
273.B E
274Fit image to window height.
275.SS Rotation
276.TP
277.B <
278Rotate image counter-clockwise by 90 degrees.
279.TP
280.B >
281Rotate image clockwise by 90 degrees.
282.TP
283.B ?
284Rotate image by 180 degrees.
285.SS Flipping
286.TP
287.B |
288Flip image horizontally.
289.TP
290.B _
291Flip image vertically.
292.SS Gamma Correction
293.TP
294.B {
295Decrease gamma.
296.TP
297.B }
298Increase gamma.
299.TP
300.B Ctrl-g
301Reset gamma.
302.SS Miscellaneous
303.TP
304.B a
305Toggle anti-aliasing.
306.TP
307.B A
308Toggle visibility of alpha-channel, i.e. image transparency.
309.TP
310.B s
311Toggle slideshow mode and/or set the delay between images to
312.I count
313seconds.
314.SH MOUSE COMMANDS
315The following mouse mappings are available in image mode:
316.SS Navigate image list
317.TP
318.B Button1
319Go to next image.
320.TP
321.B Button3
322Go to the previous image.
323.SS Panning
324.TP
325.B Button2
326Drag the image with the mouse while keeping this button pressed down.
327.TP
328.B ScrollUp
329Scroll image up.
330.TP
331.B ScrollDown
332Scroll image down.
333.TP
334.B Shift+ScrollUp
335Scroll image left.
336.TP
337.B Shift+ScrollDown
338Scroll image right.
339.SS Zooming
340.TP
341.B Ctrl+ScrollUp
342Zoom in.
343.TP
344.B Ctrl+ScrollDown
345Zoom out.
346.SH STATUS BAR
347The information displayed on the left side of the status bar can be replaced
348with the output of a user-provided script, which is called by sxiv whenever an
349image gets loaded. The path of this script is
350.I $XDG_CONFIG_HOME/sxiv/exec/image-info
351and the first argument to this script is the path of the loaded image.
352.P
353There is also an example script installed together with sxiv as
354.IR PREFIX/share/sxiv/exec/image-info .
355.SH EXTERNAL KEY HANDLER
356Additional external keyboard commands can be defined using a handler program
357located in
358.IR $XDG_CONFIG_HOME/sxiv/exec/key-handler .
359The handler is invoked by pressing
360.BR Ctrl-x .
361The next key combo is then passed as its first argument, followed by the paths
362of all marked images or the path of the current image, if no image is marked.
363sxiv(1) will block until the handler terminates. It then checks which images
364have been modified and reloads them.
365
366The key combo argument has the following form: "[C-][M-][S-]KEY",
367where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X
368keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
369
370There is also an example script installed together with sxiv as
371.IR PREFIX/share/sxiv/exec/key-handler .
372.SH THUMBNAIL CACHING
373sxiv stores all thumbnails under
374.IR $XDG_CACHE_HOME/sxiv/ .
375.P
376Use the command line option
377.I \-c
378to remove all orphaned cache files. Additionally, run the following command
379afterwards inside the cache directory to remove empty subdirectories:
380.P
381.RS
382find . \-depth \-type d \-empty ! \-name '.' \-exec rmdir {} \\;
383.RE
384.SH AUTHOR
385.EX
386Bert Muennich <ber.t at posteo.de>
387.EE
388.SH CONTRIBUTORS
389.EX
390Bastien Dejean <nihilhill at gmail.com>
391Dave Reisner <d at falconindy.com>
392Fung SzeTat <sthorde at gmail.com>
393.EE
394.SH HOMEPAGE
395.EX
396https://github.com/muennich/sxiv
397.EE
398.SH SEE ALSO
399.BR feh (1),
400.BR qiv (1)