Scroll to navigation

SWAYIMG(1) Swayimg manual SWAYIMG(1)

NAME

swayimg - image viewer for Sway/Wayland

SYNOPSIS

swayimg [OPTIONS]... [FILE]...

DESCRIPTION

The swayimg utility can be used for preview images inside the currently focused window (container).

If no input files or directories are specified, the viewer will try to read all files in the current directory.

Use '-' as FILE to read image data from stdin.

The program uses Sway IPC to determine the geometry of the currently focused workspace and window. This data is used calculate the position and size of a new window. Then the program adds two rules to the Sway: "floating enable" and "move position" for swayimg application, creates a new Wayland window and draws an image from the specified file.

OPTIONS

Display help message.
Display version information and list of supported image formats.
Set the order of the image file list:
none: unsorted;
alpha: sort alphabetically (default);
random: randomize list.
Read directories recursively.
Allways open all files in the same directory. Even if you specify FILE as
a path to a some file (not a directory), swayimg will add all nearby files
to the image list.
Enable marking mode. Any file in the image list can be marked (see keybindings),
and when the program exits, the list of marked files will be printed to stdout.
Set the absolute position and size of the window, for example
10,20,100,200 creates a window at position 10x20 (top left corner) with
a size of 100x200. The comma can be replaced with any non-numeric character.
If this parameter is not specified, the geometry of the currently focused Sway
window will be used.
Set background for transparent images:

none: transparent; grid: show grid as background (default);
Set window background:

none: transparent (default); #XXXXXX: hexadecimal RGB color.
Start in full screen mode.
Set the default scale of the image. SCALE is one of the named values.
´default´: reduce the image to fit the window, but do not enlarge it.
´fit´: reduce or enlarge the image to fit the window.
´real´: real image size (100%).
Show image meta info (file name, size, EXIF, current scale, etc).
Set a constant window class/app_id, setting this may break the window layout.
Disable integration with Sway WM (window position management).

KEYBINDINGS

Move the view point.
+, =
Zoom in.
-
Zoom out.
0
Set scale to 100%.
Reset position and scale to defaults.
Rotate 90 degrees anticlockwise.
Rotate 90 degrees clockwise.
Flip vertical.
Flip horizontal.
Show/hide image properties.
Toggle full screen mode.
Open next file.
Open previous file.
Open file from next directory.
Open file from previous directory.
Open the first file.
Open the last file.
Invert mark sate for current file.
*, M
Invert mark sate for all files.
Mark all files.
Unmark all files.
Exit the program.

ENVIRONMENT

Path to the socket file used for Sway IPC.

SEE ALSO

swayimgrc(5)

BUGS

For suggestions, comments, bug reports etc. visit the project homepage.

2021-12-28 swayimg