DOKK / manpages / debian 12 / nsxiv / nsxiv.1.en
NSXIV(1) General Commands Manual NSXIV(1)

nsxiv - Neo Simple X Image Viewer

nsxiv [-abcfhiopqrtvZ0] [-A FRAMERATE] [-e WID] [-G GAMMA] [-g GEOMETRY] [-N NAME] [-n NUM] [-S DELAY] [-s MODE] [-z ZOOM] FILE...

nsxiv is a simple image viewer for X.

It has two modes of operation: image and thumbnail mode. The default is image mode, in which only the current image is shown. In thumbnail mode a grid of small previews is displayed, making it easy to choose an image to open.

Please note, that the fullscreen mode requires an EWMH/NetWM-compliant window manager.

Play animations with a constant frame rate set to FRAMERATE.
Play animations of multi-frame images.
Do not show statusbar at the bottom of the window.
Remove all orphaned cache files from the thumbnail cache directory and exit.
Embed nsxiv's window into window whose ID is WID.
Start in fullscreen mode.
Set image gamma to GAMMA (-32..32).
Set window position and size. See section GEOMETRY SPECIFICATIONS of X(7) for more information on GEOMETRY argument.
Print brief usage information to standard output and exit.
Read names of files to open from standard input. Also done if FILE is `-'.
Set the resource name (WM_CLASS) of nsxiv's X window to NAME.
Start at picture number NUM.
Write list of all marked files to standard output when quitting. In combination with -i, --stdin nsxiv can be used as a visual filter/pipe.
Enable private mode, in which nsxiv does not write any cache or temporary files.
Be quiet, and disable warnings to standard error stream.
Search the given directories recursively for images to view.
Start in slideshow mode. Set the delay between images to DELAY seconds. DELAY may be a floating-point number.
Set scale mode according to MODE character. Supported modes are: [d]own, [f]it, [F]ill, [w]idth, [h]eight.
Start in thumbnail mode.
Print version information to standard output and exit.
The same as `-z 100'.
Set zoom level to ZOOM percent.
-0, --null
Use NULL-separator. With this option, output of -o and file-list sent to the key-handler and the input of -i will be separated by a NULL character.
Enables anti-aliasing, when given no as an argument, disables it instead.
Enables checkerboard background for alpha layer, when given no as an argument, disables it instead.

The following keyboard commands are available in both image and thumbnail modes:

0-9
Prefix the next command with a number (denoted via count).
Quit nsxiv.
Switch to thumbnail mode / open selected image in image mode.
Toggle fullscreen mode.
Toggle visibility of statusbar at the bottom of the window.
Send the next key to the external key-handler. See section EXTERNAL KEY HANDLER for more information.
Go to the first image.
Go to the last image, or image number count.
Reload image.
Remove current image from file list and go to next image.
Scroll left one screen width.
Scroll down one screen height.
Scroll up one screen height.
Scroll right one screen width.
+
Zoom in.
-
Zoom out.
Mark/unmark the current image.
Mark/unmark all images starting from the last marked/unmarked image up to the current one.
Reverse all image marks.
Remove all image marks.
Go count marked images forward.
Go count marked images backward.
{
Decrease gamma correction by count steps.
}
Increase gamma correction by count steps.
Reset gamma correction.
[
Decrease brightness correction by count steps.
]
Increase brightness correction by count steps.
(
Decrease contrast by count steps.
)
Increase contrast by count steps.

Thumbnail mode

The following keyboard commands are only available in thumbnail mode:

Move selection left count times.
Move selection down count times.
Move selection up count times.
Move selection right count times.
Reload all thumbnails.

Image mode

The following keyboard commands are only available in image mode:

Go count images forward.
Go count images backward.
[
Go count * 10 images backward.
]
Go count * 10 images forward.
Go to the previously viewed image.
Go count frames of a multi-frame image forward.
Go count frames of a multi-frame image backward.
Play/stop animations of multi-frame images.
Scroll image 1/5 of window width or count pixels left.
Scroll image 1/5 of window height or count pixels down.
Scroll image 1/5 of window height or count pixels up.
Scroll image 1/5 of window width or count pixels right.
Scroll to left image edge.
Scroll to bottom image edge.
Scroll to top image edge.
Scroll to right image edge.
Scroll to image center.
=
Set zoom level to 100%, or count%.
Set zoom level to 100%, but fit large images into window.
Fit image to window.
Fill image to window.
Fit image to window width.
Fit image to window height.
<
Rotate image counter-clockwise by 90 degrees.
>
Rotate image clockwise by 90 degrees.
?
Rotate image by 180 degrees.
|
Flip image horizontally.
_
Flip image vertically.
Toggle anti-aliasing.
Toggle visibility of alpha-channel, i.e. image transparency.
Toggle slideshow mode and/or set the delay between images to count seconds.

Thumbnail mode

The following mouse mappings are available in thumbnail mode:

Select the image. Goes into image mode if double-clicked.
Mark/unmark the image. Dragging while holding down Button3 will mark/unmark multiple images.
Scroll up by one row.
Scroll down by one row.
Scroll up by one page.
Scroll down by one page.

Image mode

The following mouse mappings are available in image mode:

Go to the next image if the mouse cursor is in the right part of the window or to the previous image if it is in the left part.
Pan the image relative to the mouse cursor.
Pan the image according to the mouse cursor position in the window while keeping this button pressed down.
Switch to thumbnail mode.
Zoom in.
Zoom out.

The following X resources are supported:

Color of the window background
Color of the window foreground
Name of Xft bar font
Color of the bar background. Defaults to window.background
Color of the bar foreground. Defaults to window.foreground
Color of the mark foreground. Defaults to window.foreground
xrdb(1) on how to change them.

The window title can be replaced with the output of a user-provided script, which is called by nsxiv whenever any of the relevant information changes. The path of this script is $XDG_CONFIG_HOME/nsxiv/exec/win-title and the arguments given to it (where "Optional" arguments might be empty) are:

$1
resolved absolute path of the current file
$2
current file number
$3
total file count
$4
image width (Optional: Disabled on thumbnails mode)
$5
image height (Optional: Disabled on thumbnails mode)
$6
current zoom (Optional: Disabled on thumbnails mode)

The term file is used rather than image as nsxiv does not precheck that the input files are valid images. Total file count may be different from the actual count of valid images.

There is also an example script installed together with nsxiv as /usr/share/doc/nsxiv/examples/win-title.

The information displayed on the left side of the status bar can be replaced with the output of user-provided script.

The script that is called by nsxiv whenever an image gets loaded is located at $XDG_CONFIG_HOME/nsxiv/exec/image-info and the arguments given to it are:

$1
path to image file (as provided by the user)
$2
image width
$3
image height
$4
fully resolved path to the image file

In thumbnail mode, the script that is called is located at $XDG_CONFIG_HOME/nsxiv/exec/thumb-info and the arguments given to it are:

$1
path to image file (as provided by the user)
$2
empty
$3
empty
$4
fully resolved path to the image file

There are also example scripts installed together with nsxiv as /usr/share/doc/nsxiv/examples/image-info and /usr/share/doc/nsxiv/examples/thumb-info.

Additional external keyboard commands can be defined using a handler program located in $XDG_CONFIG_HOME/nsxiv/exec/key-handler. The handler is invoked by pressing Ctrl-x. The next key combo is passed as its first argument. Passed via stdin are the images to act upon: all marked images, if in thumbnail mode and at least one image has been marked, otherwise the current image. nsxiv(1) will block until the handler terminates. It then checks which images have been modified and reloads them.

By default nsxiv(1) will send one image per-line to stdin, however when using -0 the image list will be NULL separated and the environment variable "$NSXIV_USING_NULL" will be set to 1.

The key combo argument has the following form: "[C-][M-][S-]KEY", where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix. If KEY has an uppercase equivalent, S-KEY is resolved into it. For instance, K replaces S-k and Scedilla replaces S-scedilla, but S-Delete is sent as-is.

There is also an example script installed together with nsxiv as /usr/share/doc/nsxiv/examples/key-handler.

nsxiv stores all thumbnails under $XDG_CACHE_HOME/nsxiv/.

Use the command line option -c to remove all orphaned cache files. Additionally, run the following command afterwards inside the cache directory to remove empty subdirectories:

find . -depth -type d -empty ! -name '.' -exec rmdir {} \;

Bert Muennich          <ber.t at posteo.de>

NRK                    <nrk at disroot.org>
Berke Kocaoğlu         <berke.kocaoglu at metu.edu.tr>
TAAPArthur             <taaparthur at gmail.com>
eylles                 <ed.ylles1997 at gmail.com>
Stein Gunnar Bakkeby   <bakkeby at gmail.com>
explosion-mental       <explosion0mental at gmail.com>
mamg22                 <marcomonizg at gmail.com>
LuXu
Guilherme Freire
Sam Whitehead
Kian Kasad             <kian at kasad.com>

For a list of contributors, run `git shortlog -s` in the nsxiv git repository.

https://nsxiv.codeberg.page/

    https://codeberg.org/nsxiv/nsxiv

X(7), xrdb(1)

nsxiv-31