# Swayimg configuration file.

# This file contains the default configuration.
# The viewer searches for the config file in the following locations:
# 1. $XDG_CONFIG_HOME/swayimg/config
# 2. $HOME/.config/swayimg/config
# 3. $XDG_CONFIG_DIRS/swayimg/config
# 4. /etc/xdg/swayimg/config
# See `man swayimgrc` for details.

# Initial scale (optimal, fit, or real)
scale = optimal

# Start in full screen mode (yes/no)
fullscreen = no

# Background for transparent images (none, grid, or RGB, e.g. #112233)
background = grid

# Window background mode/color (none or RGB, e.g. #112233)
window = none

# Show image info: format, size, EXIF, and current scale (yes/no)
info = no

# Font used to show image info
font = monospace

# Font size (in pt)
font-size = 14

# Color for image info text
font-color = #cccccc

# Default order of the image list (none, alpha, or random)
order = alpha

# Looping file list mode (yes/no)
loop = yes

# Read directories recursively (yes/no)
recursive = no

# Allways open all files in the same directory
all = no

# Slideshow image duration in seconds
slideshow = 3

# Executable command
exec = echo '%'

# Anti-aliasing
antialiasing = no

# Window class/app_id (default is autogenerated swayimg_XXXX)
#app_id = swayimg

# Enable/disable integration with Sway WM (window position managing)
sway = yes

# Section with key bindings (key -> action)
[keys]
Home = first_file
g = first_file
End = last_file
G = last_file
P = prev_dir
N = next_dir
Prior = prev_file
p = prev_file
Next = next_file
n = next_file
F2 = prev_frame
O = prev_frame
F3 = next_frame
o = next_frame
F4 = animation
s = animation
F9 = slideshow
F11 = fullscreen
f = fullscreen
Left = step_left
h = step_left
Right = step_right
l = step_right
Up = step_up
k = step_up
Down = step_down
j = step_down
equal = zoom_in
plus = zoom_in
minus = zoom_out
z = zoom_optimal
Z = zoom_fit
0 = zoom_real
BackSpace = zoom_reset
F5 = rotate_left
bracketleft = rotate_left
F6 = rotate_right
bracketright = rotate_right
F7 = flip_vertical
F8 = flip_horizontal
a = antialiasing
r = reload
i = info
e = exec
Escape = quit
Return = quit
F10 = quit
q = quit

# vim: filetype=dosini
