SWAYIMGRC(5) | Swayimg configuration | SWAYIMGRC(5) |
swayimgrc - Swayimg configuration file
$XDG_CONFIG_HOME/swayimg/config |
$HOME/.config/swayimg/config |
$XDG_CONFIG_DIRS/swayimg/config |
/etc/xdg/swayimg/config |
The Swayimg configuration file is a text-based INI file used to override the default settings.
The structure of the INI file consists of key-value pairs for properties and sections that organize properties. The basic element contained in the INI file is the key or property. Every key has a name and a value, delimited by an equals sign (=). The name appears to the left of the equals sign. The value can contain any characters.
Keys are grouped into named sections. The section name appears on a line by itself, in square brackets ([ and ]). All keys after the section declaration are associated with that section.
The number sign (#) at the beginning of the line indicates a comment. Empty lines and comments are ignored.
optimal: 100% or less to fit to window (default); width: fit image width to window width; height: fit image height to window height; fit: fit to window; fill: crop image to fill the window; real: real size (100%);
none: transparent; grid: show grid as background (default); XXXXXX: hexadecimal RGB color.
parent: set position from parent (currently active) window (default); X,Y: absolute coordinates of the top left corner.
parent: set size from parent (currently active) window (default); image: set size from the first image; WIDTH,HEIGHT: absolute size of the window.
none: transparent (default); XXXXXX: hexadecimal RGB color.
none: unsorted; alpha: sorted alphabetically (default); random: randomize list.
name: file name; path: full path; filesize: file size; format: image format; imagesize: image size; exif: EXIF data; frame: current/total frame index; index: current/total file index; scale: current scale in percent; status: status message; none: empty field (ignored);
The key bindings are described in the "keys" section. Each line associates a key with some action and optional parameters. The key name can be obtained with the xkbcli tool: `xkbcli interactive-wayland`. One or more key modifers (Ctrl, Alt, Shift) can be specified in the key name.
Valid action are:
Same format as in [keys].
Valid keys:
# comment [general] window = #112233 [list] order = random [font] size = 16 [keys] e = exec echo "%" > mylist.txt
swayimg(1)
For suggestions, comments, bug reports etc. visit the project homepage.
2022-02-09 | swayimg |