LinuxCommandLibrary

sxiv

View images quickly and simply

TLDR

Open an image

$ sxiv [path/to/image]
copy

Open an image in fullscreen mode
$ sxiv -f [path/to/file]
copy

Open a newline-separated list of images, reading filenames from stdin
$ echo [path/to/file] | sxiv -i
copy

Open one or more images as a slideshow
$ sxiv -S [seconds] [path/to/image1 path/to/image2]
copy

Open one or more images in thumbnail mode
$ sxiv -t [path/to/image1 path/to/image2]
copy

SYNOPSIS

sxiv [options] [image files...|directories...]

PARAMETERS

-b
    Disable borderless window.

-c
    Center new images on the screen.

-d
    Delete all images after closing.

-f
    Start in fullscreen mode.

-g
    Specify window geometry. e.g. 640x480+0+0

-n
    Start with image number .

-o
    Output file list to on exit. (default: sxiv_image_list)

-q
    Quiet mode (suppress errors).

-r
    Recursive search of directories.

-s
    Start in slideshow mode.

-S
    Shuffle image order.

-v
    Show version information and exit.

-z
    Zoom image to fit window on startup.

DESCRIPTION

sxiv (Simple X Image Viewer) is a lightweight and fast image viewer for X Window System. It focuses on simplicity, efficiency, and Vim-like keybindings. It primarily aims to be a basic image viewer with the most essential functionality, relying on external tools for more advanced features.

sxiv supports common image formats like JPEG, PNG, GIF, WebP and others through external libraries. Its minimalist interface is centered around the image itself, with options accessible via keyboard shortcuts or a right-click context menu. sxiv allows browsing images in a directory and supports operations like zooming, rotating, and deleting images. It allows user to view slideshows, set an image as the background, and manipulate images by external commands. It can be extended by the user to perform any user-defined action.

It is favored by users who prefer keyboard navigation and a clutter-free viewing experience.

CONFIGURATION

sxiv can be customized via a configuration file located at ~/.config/sxiv/sxivrc. This file allows users to define keybindings, external commands, and other settings.

KEYBINDINGS

sxiv uses Vim-like keybindings for navigation and image manipulation. Common keybindings include:
- j/k: Next/Previous image
- +/-: Zoom in/out
- r: Rotate image
- d: Delete image

SEE ALSO

feh(1)

Copied to clipboard