$linuxjunkies
>

swayimg(1)

swayimg is a lightweight image viewer for Wayland/Sway with keyboard-driven navigation and minimal dependencies.

UbuntuDebianFedoraArch

Synopsis

swayimg [OPTIONS] [FILE|DIR]...

Description

swayimg is an image viewer built for the Sway window manager and Wayland-based desktops. It displays images from files or directories with efficient memory usage and supports common image formats including PNG, JPEG, GIF, and WebP. The viewer uses keyboard shortcuts for navigation and can be used interactively or with command-line options.

Key features include slideshow mode, image scaling to fit window, recursive directory traversal, and a minimalist interface designed for keyboard control. It integrates well with tiling window managers and works natively under Wayland without X11 compatibility layers.

Common options

FlagWhat it does
-h, --helpdisplay help message and exit
-v, --versionshow version information
-f, --fullscreenopen in fullscreen mode
-s, --slideshowstart slideshow automatically on launch
-t, --slideshow-intervalset slideshow interval in milliseconds (default: 3000)
-r, --recursiverecursively load images from subdirectories
-o, --ordersort images by name, size, date, or random
--configspecify custom configuration file path

Examples

open a single image file in the viewer

swayimg ~/Pictures/photo.jpg

open image viewer and load all images from the Pictures directory

swayimg ~/Pictures

open image in fullscreen mode

swayimg -f ~/Images/vacation.png

start automatic slideshow with 2-second interval for all images in Pictures

swayimg -s -t 2000 ~/Pictures

load images recursively from Media directory and all subdirectories

swayimg -r ~/Media

load images sorted by modification date

swayimg --order date ~/Photos

load images from current directory in random order

swayimg -o random .

Related commands