Krolyxon
Commit 5c2c719

Branches

Refs →

nsxivnsxiv.1

562 lines · 11.5 KB · Groff/troff

1.TH NSXIV 1 nsxiv\-VERSION
2.SH NAME
3nsxiv \- Neo Simple X Image Viewer
4.SH SYNOPSIS
5.B nsxiv
6.RB [ \-abcfhiopqrtvZ0 ]
7.RB [ \-A
8.IR FRAMERATE ]
9.RB [ \-e
10.IR WID ]
11.RB [ \-G
12.IR GAMMA ]
13.RB [ \-g
14.IR GEOMETRY ]
15.RB [ \-N
16.IR NAME ]
17.RB [ \-n
18.IR NUM ]
19.RB [ \-S
20.IR DELAY ]
21.RB [ \-s
22.IR MODE ]
23.RB [ \-z
24.IR ZOOM ]
25.IR FILE ...
26.SH DESCRIPTION
27nsxiv is a simple image viewer for X.
28.P
29It has two modes of operation: image and thumbnail mode. The default is image
30mode, in which only the current image is shown. In thumbnail mode a grid of
31small previews is displayed, making it easy to choose an image to open.
32.P
33Please note, that the fullscreen mode requires an EWMH/NetWM-compliant window
34manager.
35.SH OPTIONS
36.TP
37.BI "\-A " FRAMERATE
38Play animations with a constant frame rate set to
39.IR FRAMERATE .
40.TP
41.B \-a
42Play animations of multi-frame images.
43.TP
44.B \-b
45Do not show statusbar at the bottom of the window.
46.TP
47.B \-c
48Remove all orphaned cache files from the thumbnail cache directory and exit.
49.TP
50.BI "\-e " WID
51Embed nsxiv's window into window whose ID is
52.IR WID .
53.TP
54.B \-f
55Start in fullscreen mode.
56.TP
57.BI "\-G " GAMMA
58Set image gamma to GAMMA (\-32..32).
59.TP
60.BI "\-g " GEOMETRY
61Set window position and size. See section GEOMETRY SPECIFICATIONS of X(7) for
62more information on GEOMETRY argument.
63.TP
64.BI "\-N " NAME
65Set the resource name of nsxiv's X window to NAME.
66.TP
67.BI "\-n " NUM
68Start at picture number NUM.
69.TP
70.B \-h
71Print brief usage information to standard output and exit.
72.TP
73.B \-i
74Read names of files to open from standard input. Also done if FILE is `-'.
75.TP
76.B \-o
77Write list of all marked files to standard output when quitting. In combination
78with
79.B \-i
80nsxiv can be used as a visual filter/pipe.
81.TP
82.B \-p
83Enable private mode, in which nsxiv does not write any cache or temporary files.
84.TP
85.B \-q
86Be quiet, and disable warnings to standard error stream.
87.TP
88.B \-r
89Search the given directories recursively for images to view.
90.TP
91.BI "\-S " DELAY
92Start in slideshow mode. Set the delay between images to
93.I DELAY
94seconds.
95.I DELAY
96may be a floating-point number.
97.TP
98.BI "\-s " MODE
99Set scale mode according to MODE character. Supported modes are: [d]own,
100[f]it, [F]ill, [w]idth, [h]eight.
101.TP
102.B \-t
103Start in thumbnail mode.
104.TP
105.B \-v
106Print version information to standard output and exit.
107.TP
108.B \-Z
109The same as `\-z 100'.
110.TP
111.BI "\-z " ZOOM
112Set zoom level to ZOOM percent.
113.TP
114.B \-0
115Use NULL-separator. With this option, output of \-o and file-list sent to the
116key-handler and the input of \-i will be separated by a NULL character.
117.SH KEYBOARD COMMANDS
118.SS General
119The following keyboard commands are available in both image and thumbnail modes:
120.TP
121.BR 0 \- 9
122Prefix the next command with a number (denoted via
123.IR count ).
124.TP
125.B q
126Quit nsxiv.
127.TP
128.B Return
129Switch to thumbnail mode / open selected image in image mode.
130.TP
131.B f
132Toggle fullscreen mode.
133.TP
134.B b
135Toggle visibility of statusbar at the bottom of the window.
136.TP
137.B Ctrl-x
138Send the next key to the external key-handler. See section EXTERNAL KEY HANDLER
139for more information.
140.TP
141.B g
142Go to the first image.
143.TP
144.B G
145Go to the last image, or image number
146.IR count .
147.TP
148.B r
149Reload image.
150.TP
151.B D
152Remove current image from file list and go to next image.
153.TP
154.BR Ctrl-h ", " Ctrl-Left
155Scroll left one screen width.
156.TP
157.BR Ctrl-j ", " Ctrl-Down
158Scroll down one screen height.
159.TP
160.BR Ctrl-k ", " Ctrl-Up
161Scroll up one screen height.
162.TP
163.BR Ctrl-l ", " Ctrl-Right
164Scroll right one screen width.
165.TP
166.BR +
167Zoom in.
168.TP
169.B \-
170Zoom out.
171.TP
172.B m
173Mark/unmark the current image.
174.TP
175.B M
176Mark/unmark all images starting from the last marked/unmarked image up to the
177current one.
178.TP
179.B Ctrl-m
180Reverse all image marks.
181.TP
182.B Ctrl-u
183Remove all image marks.
184.TP
185.B N
186Go
187.I count
188marked images forward.
189.TP
190.B P
191Go
192.I count
193marked images backward.
194.TP
195.B {
196Decrease gamma correction by
197.I count
198steps.
199.TP
200.B }
201Increase gamma correction by
202.I count
203steps.
204.TP
205.B Ctrl-g
206Reset gamma correction.
207.SS Thumbnail mode
208The following keyboard commands are only available in thumbnail mode:
209.TP
210.BR h ", " Left
211Move selection left
212.I count
213times.
214.TP
215.BR j ", " Down
216Move selection down
217.I count
218times.
219.TP
220.BR k ", " Up
221Move selection up
222.I count
223times.
224.TP
225.BR l ", " Right
226Move selection right
227.I count
228times.
229.TP
230.B R
231Reload all thumbnails.
232.SS Image mode
233The following keyboard commands are only available in image mode:
234.TP
235Navigate image list:
236.TP
237.BR n ", " Space
238Go
239.I count
240images forward.
241.TP
242.BR p ", " Backspace
243Go
244.I count
245images backward.
246.TP
247.B [
248Go
249.I count
250* 10 images backward.
251.TP
252.B ]
253Go
254.I count
255* 10 images forward.
256.TP
257Handle multi-frame images:
258.TP
259.B Ctrl-n
260Go
261.I count
262frames of a multi-frame image forward.
263.TP
264.B Ctrl-p
265Go
266.I count
267frames of a multi-frame image backward.
268.TP
269.BR Ctrl-a ", " Ctrl-Space
270Play/stop animations of multi-frame images.
271.TP
272Panning:
273.TP
274.BR h ", " Left
275Scroll image 1/5 of window width or
276.I count
277pixels left.
278.TP
279.BR j ", " Down
280Scroll image 1/5 of window height or
281.I count
282pixels down.
283.TP
284.BR k ", " Up
285Scroll image 1/5 of window height or
286.I count
287pixels up.
288.TP
289.BR l ", " Right
290Scroll image 1/5 of window width or
291.I count
292pixels right.
293.TP
294.B H
295Scroll to left image edge.
296.TP
297.B J
298Scroll to bottom image edge.
299.TP
300.B K
301Scroll to top image edge.
302.TP
303.B L
304Scroll to right image edge.
305.TP
306.B z
307Scroll to image center.
308.TP
309Zooming:
310.TP
311.B =
312Set zoom level to 100%, or
313.IR count %.
314.TP
315.B w
316Set zoom level to 100%, but fit large images into window.
317.TP
318.B W
319Fit image to window.
320.TP
321.B F
322Fill image to window.
323.TP
324.B e
325Fit image to window width.
326.TP
327.B E
328Fit image to window height.
329.TP
330Rotation:
331.TP
332.B <
333Rotate image counter-clockwise by 90 degrees.
334.TP
335.B >
336Rotate image clockwise by 90 degrees.
337.TP
338.B ?
339Rotate image by 180 degrees.
340.TP
341Flipping:
342.TP
343.B |
344Flip image horizontally.
345.TP
346.B _
347Flip image vertically.
348.TP
349Miscellaneous:
350.TP
351.B a
352Toggle anti-aliasing.
353.TP
354.B A
355Toggle visibility of alpha-channel, i.e. image transparency.
356.TP
357.B s
358Toggle slideshow mode and/or set the delay between images to
359.I count
360seconds.
361.SH MOUSE COMMANDS
362.SS Thumbnail mode
363The following mouse mappings are available in thumbnail mode:
364.TP
365.B Button1
366Select the image. Goes into image mode if double\-clicked.
367.TP
368.B Button3
369Mark/unmark the image. Dragging while holding down Button3 will mark/unmark
370multiple images.
371.TP
372.B Button4
373Scroll up by one row.
374.TP
375.B Button5
376Scroll down by one row.
377.TP
378.B Ctrl-Button4
379Scroll up by one page.
380.TP
381.B Ctrl-Button5
382Scroll down by one page.
383.SS Image mode
384The following mouse mappings are available in image mode:
385.TP
386.B Button1
387Go to the next image if the mouse cursor is in the right part of the window or
388to the previous image if it is in the left part.
389.TP
390.B Ctrl-Button1
391Pan the image relative to the mouse cursor.
392.TP
393.B Button2
394Pan the image according to the mouse cursor position in the window while
395keeping this button pressed down.
396.TP
397.B Button3
398Switch to thumbnail mode.
399.TP
400.B Button4
401Zoom in.
402.TP
403.B Button5
404Zoom out.
405.SH CONFIGURATION
406The following X resources are supported:
407.TP
408.B window.background
409Color of the window background
410.TP
411.B window.foreground
412Color of the window foreground
413.TP
414.B bar.font
415Name of Xft bar font
416.TP
417.B bar.background
418Color of the bar background. Defaults to window.background
419.TP
420.B bar.foreground
421Color of the bar foreground. Defaults to window.foreground
422.TP
423.B mark.foreground
424Color of the mark foreground. Defaults to window.foreground
425.TP
426Please see xrdb(1) on how to change them.
427.SH WINDOW TITLE
428The window title can be replaced with the output of a user-provided script,
429which is called by nsxiv whenever any of the relevant information changes.
430The path of this script is
431.I $XDG_CONFIG_HOME/nsxiv/exec/win-title
432and the arguments given to it (where "Optional" arguments might be empty) are:
433.IP $1 4
434resolved absolute path of the current file
435.IP $2 4
436current file number
437.IP $3 4
438total file count
439.IP $4 4
440image width (Optional: Disabled on thumbnails mode)
441.IP $5 4
442image height (Optional: Disabled on thumbnails mode)
443.IP $6 4
444current zoom (Optional: Disabled on thumbnails mode)
445.P
446The term file is used rather than image as nsxiv does not precheck that the
447input files are valid images. Total file count may be different from the actual
448count of valid images.
449.P
450There is also an example script installed together with nsxiv as
451.IR EGPREFIX/win-title .
452.SH STATUS BAR
453The information displayed on the left side of the status bar can be replaced
454with the output of user-provided script.
455.P
456The script that is called by nsxiv whenever an image gets loaded is located at
457.I $XDG_CONFIG_HOME/nsxiv/exec/image-info
458and the arguments given to it are:
459.IP $1 4
460path to image file (as provided by the user)
461.IP $2 4
462image width
463.IP $3 4
464image height
465.IP $4 4
466fully resolved path to the image file
467.P
468In thumbnail mode, the script that is called is located at
469.I $XDG_CONFIG_HOME/nsxiv/exec/thumb-info
470and the arguments given to it are:
471.IP $1 4
472path to image file (as provided by the user)
473.IP $2 4
474empty
475.IP $3 4
476empty
477.IP $4 4
478fully resolved path to the image file
479.P
480There are also example scripts installed together with nsxiv as
481.IR EGPREFIX/image-info
482and
483.IR EGPREFIX/thumb-info .
484.SH EXTERNAL KEY HANDLER
485Additional external keyboard commands can be defined using a handler program
486located in
487.IR $XDG_CONFIG_HOME/nsxiv/exec/key-handler .
488The handler is invoked by pressing
489.BR Ctrl-x .
490The next key combo is passed as its first argument. Passed via stdin are the
491images to act upon: all marked images, if in thumbnail mode and at least one
492image has been marked, otherwise the current image. nsxiv(1) will block until
493the handler terminates. It then checks which images have been modified and
494reloads them.
495
496By default nsxiv(1) will send one image per-line to stdin, however when using
497\-0 the image list will be NULL separated and the environment variable
498"$NSXIV_USING_NULL" will be set to 1.
499
500The key combo argument has the following form: "[C-][M-][S-]KEY",
501where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X
502keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
503If KEY has an uppercase equivalent, S-KEY is resolved into it. For instance,
504K replaces S-k and Scedilla replaces S-scedilla, but S-Delete is sent as-is.
505
506There is also an example script installed together with nsxiv as
507.IR EGPREFIX/key-handler .
508.SH THUMBNAIL CACHING
509nsxiv stores all thumbnails under
510.IR $XDG_CACHE_HOME/nsxiv/ .
511.P
512Use the command line option
513.I \-c
514to remove all orphaned cache files. Additionally, run the following command
515afterwards inside the cache directory to remove empty subdirectories:
516.P
517.RS
518find . \-depth \-type d \-empty ! \-name '.' \-exec rmdir {} \\;
519.RE
520.SH ORIGINAL AUTHOR
521.EX
522Bert Muennich <ber.t at posteo.de>
523.EE
524.SH CURRENT MAINTAINERS
525.EX
526N-R-K <nrk at disroot.org>
527Berke Kocaoğlu <berke.kocaoglu at metu.edu.tr>
528TAAPArthur <taaparthur at gmail.com>
529eylles <ed.ylles1997 at gmail.com>
530mamg22 <marcomonizg at gmail.com>
531LuXu
532explosion-mental <explosion0mental at gmail.com>
533Guilherme Freire
534Stein Gunnar Bakkeby <bakkeby at gmail.com>
535Anupam Ashish Minz
536Sam Whitehead
537Kian Kasad <kian at kasad.com>
538qsmodo
539.EE
540.SH CONTRIBUTORS
541.EX
542Bastien Dejean <nihilhill at gmail.com>
543Dave Reisner <d at falconindy.com>
544Fung SzeTat <sthorde at gmail.com>
545Max Voit <mvdev at with-eyes.net>
546
547For additional contributors, run `git shortlog -s` in the nsxiv repository.
548.EE
549.SH HOMEPAGE
550.TP
551Website:
552.EE
553https://nsxiv.codeberg.page/
554.EX
555.TP
556Source code:
557.EE
558https://codeberg.org/nsxiv/nsxiv
559.EX
560.SH SEE ALSO
561.BR X (7),
562.BR xrdb (1)