TOOL » LINUX » APP

Sxiv

Usage

a simple image viewer for X.

shell
sxiv OPTIONS TARGET
OptionDescription
-aPlay animations of multi-frame images.
-bDo not show info bar on bottom of window.
-fStart in fullscreen mode.
-iRead names of files to open from standard input. Also done if FILE is -.
-pEnable private mode, in which sxiv does not write any cache or temporary files.
-qBe quiet, disable warnings to standard error stream.
-rSearch the given directories recursively for images to view.
-tStart in thumbnail mode.
-ZThe same as -z 100.
-zSet zoom level to ZOOM percent.

Keyboard commands

ShortcutDescription
qQuit sxiv.
returnSwitch to thumbnail mode / open selected image in image mode.
fToggle fullscreen mode.
bToggle visibility of info bar on bottom of window.
gGo to the first image.
GGo to the last image.
rReload image.
Ctrl-spacePlay/stop animations of multi-frame images.
arrowScroll image.
+Zoom in.
-Zoom out.
n spaceNext image.
p backspacePrevious image.
=Set zoom level to 100%.
WFit image to window.

Configuration

Set background and foreground colors on ~/.Xresources:

txt
*background: #383c4a
*foreground: #cdd1dc

Apply changes with xrdb ~/.Xresources.

Examples

Open directory using the thumbnail mode.

shell
sxiv -t directory/

Randomize images.

shell
printf '%s\0' * | shuf -z | xargs -r0 sxiv