Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

programs.swayimg.enable

Whether to enable swayimg.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.swayimg.package

The swayimg package to use.

Type: package

Default:

pkgs.swayimg

Declared by:

programs.swayimg.initLua

Configuration written to $XDG_CONFIG_HOME/swayimg/init.lua.

See https://github.com/artemsen/swayimg/blob/master/CONFIG.md for documentation.

Type: null or absolute path or strings concatenated with ā€œ\nā€

Default:

null

Example:

swayimg.text.set_size(32)
swayimg.text.set_foreground(0xffff0000)

swayimg.viewer.set_default_scale("fill")

swayimg.gallery.on_key("Delete", function()
  local image = swayimg.gallery.get_image()
  os.remove(image.path)
end)

Declared by: