Krolyxon
Commit ab1dc3b

Branches

Tags

Refs →

remagesrcconfigdefault.toml

205 lines · 6.4 KB · TOML

1# remage configuration — the complete default.
2#
3# Copy only what you want to change into ~/.config/remage/config.toml: your file is merged
4# over these defaults, so a partial file is fine. `remage --check-config` validates it.
5# Changes apply live, and SIGUSR1 or the `reload-config` action reload by hand.
6
7# Files merged before this one, in order; this file wins. `~` and `$VAR` expand, relative
8# paths resolve against this file's directory, and a missing include is only a warning.
9# include = ["~/.cache/matugen/remage.toml"]
10include = []
11
12[general]
13open_siblings = true # a single file argument opens its whole directory
14recursive = false # descend into directory arguments
15sort = "natural" # natural | name | mtime | size | random
16reverse = false
17start_mode = "image" # image | grid
18wrap = true # next on the last image goes to the first
19watch_dir = true # add and drop files that appear or vanish on disk
20
21[window]
22decorations = false
23title = "{name} — remage" # {name} {index} {count}
24class = "remage" # Wayland app_id / X11 class
25fullscreen = false
26
27[image]
28fit = "down" # down (fit, never enlarge) | fit | fill | width | height | original
29zoom_step = 1.25
30filter = "auto" # auto (nearest above 300%) | linear | nearest
31alpha_background = "dots" # dots | checker | solid
32auto_orient = true # apply EXIF orientation
33color_management = true # convert ICC / CICP colour to sRGB
34preload = 2 # images decoded and uploaded on each side
35cache_mb = 512 # decoded-image cache budget
36slideshow_delay = 5.0 # seconds
37
38[grid]
39sizes = [96, 128, 160, 224, 320]
40size = 160
41gap = 16
42thumbnail_cache = true # read and write the shared freedesktop thumbnail cache
43names = false # filenames under thumbnails
44
45[ui]
46statusbar = true
47which_key_delay_ms = 300
48scale = 1.0 # UI size multiplier on top of the display scale
49statusbar_left = "{name}"
50statusbar_right = "{format} {width}×{height} {zoom}% {index}/{count}"
51info_command = "" # script whose output fills a status segment
52font_ui = "Space Grotesk"
53font_mono = "Space Mono"
54font_display = "Doto"
55
56[animation]
57enabled = true
58duration_ms = 180
59transition = "fade" # fade | none
60
61[theme]
62preset = "nothing-dark" # nothing-dark | nothing-light
63# Read colours from pywal: special.background / special.foreground / colors.color1.
64# pywal = "~/.cache/wal/colors.json"
65#
66# background, foreground and accent are enough; every other token is derived from them.
67# Any token can be set explicitly as "#RRGGBB" or "#RRGGBBAA":
68# background = "#000000"
69# foreground = "#FFFFFF"
70# accent = "#D71921"
71# surface surface_raised border border_visible text_disabled text_secondary
72# text_primary text_display success warning image_background
73
74# Key bindings. Values are an action, an array of actions run in order, or "none" to remove
75# a default. Mode tables override [keys.global]; visual mode also inherits [keys.grid].
76# Notation is vim's: n G <C-x> <S-Tab> <Space>w <CR> <BS> <Esc> <F5> <lt> <Bar>, plus
77# <LeftMouse> <RightMouse> <MiddleMouse> <ScrollUp> <ScrollDown> with modifiers (<C-ScrollUp>).
78# A count typed first applies to the action: 5n, 12G, 3+.
79
80[keys.global]
81"q" = "quit"
82"<CR>" = "mode toggle"
83"n" = "next"
84"p" = "prev"
85"<BS>" = "prev"
86"]" = "next 10"
87"[" = "prev 10"
88"gg" = "first"
89"G" = "last"
90"<Home>" = "first"
91"<End>" = "last"
92"m" = "mark"
93"M" = "invert-marks"
94"u" = "unmark-all"
95"N" = "next-mark"
96"P" = "prev-mark"
97"f" = "fullscreen"
98"b" = "bar"
99"i" = "info"
100"r" = "reload"
101"D" = "remove"
102"s" = "slideshow"
103":" = "palette"
104"/" = "search"
105"?" = "help"
106"<Esc>" = "cancel"
107
108[keys.image]
109"h" = "pan left"
110"j" = "pan down"
111"k" = "pan up"
112"l" = "pan right"
113"<Left>" = "pan left"
114"<Down>" = "pan down"
115"<Up>" = "pan up"
116"<Right>" = "pan right"
117"H" = "pan-edge left"
118"J" = "pan-edge down"
119"K" = "pan-edge up"
120"L" = "pan-edge right"
121"z" = "center"
122"+" = "zoom in"
123"-" = "zoom out"
124"=" = "zoom 100%"
125"w" = "fit fit"
126"W" = "fit fill"
127"e" = "fit width"
128"E" = "fit height"
129"<lt>" = "rotate ccw"
130">" = "rotate cw"
131"|" = "flip h"
132"_" = "flip v"
133"a" = "filter toggle"
134"A" = "alpha-bg cycle"
135"{" = "gamma -"
136"}" = "gamma +"
137"<C-Space>" = "play"
138"<C-n>" = "next-frame"
139"<C-p>" = "prev-frame"
140"<ScrollUp>" = "zoom in"
141"<ScrollDown>" = "zoom out"
142
143# In the grid a click selects a thumbnail and a double-click opens it; dragging scrolls.
144[keys.grid]
145"h" = "move left"
146"j" = "move down"
147"k" = "move up"
148"l" = "move right"
149"<Left>" = "move left"
150"<Down>" = "move down"
151"<Up>" = "move up"
152"<Right>" = "move right"
153"<C-d>" = "page half-down"
154"<C-u>" = "page half-up"
155"<C-f>" = "page down"
156"<C-b>" = "page up"
157"<PageDown>" = "page down"
158"<PageUp>" = "page up"
159"0" = "row-start"
160"^" = "row-start"
161"$" = "row-end"
162"+" = "grid-size +"
163"-" = "grid-size -"
164"v" = "visual"
165"<ScrollUp>" = "scroll up"
166"<ScrollDown>" = "scroll down"
167
168[keys.visual]
169"m" = "mark on"
170"v" = "mode grid"
171"<Esc>" = "mode grid"
172
173# User commands: bind them as "run <name>"; unbound ones still show in the : palette.
174#
175# [commands.wallpaper]
176# desc = "Set as wallpaper"
177# run = ["setwall", "-p", "{file}"] # array: exec directly, {files} expands to N args
178#
179# [commands.copy]
180# desc = "Copy image"
181# run = "wl-copy --type image/png < {file}" # string: sh -c, placeholders shell-quoted for you
182#
183# [commands.delete]
184# desc = "Delete files"
185# run = ["rm", "--", "{files}"]
186# confirm = "Delete {count} file(s)?" # asks inline; y runs it, any other key cancels
187#
188# [commands.legacy] # an nsxiv key-handler works unchanged
189# run = ["~/.config/nsxiv/exec/key-handler", "w"]
190# stdin = "files"
191#
192# Fields: targets = auto (marked, else current) | current | marked | all,
193# stdin = none | files | files0, output = status (last stdout line) | actions (each line runs
194# as an action) | ignore, after = actions run on success (default "refresh": drop deleted
195# files, reload changed ones).
196# Placeholders: {file} {dir} {name} {stem} {ext} {index} {width} {height} describe the current
197# image; {files} and {count} the targets. In an array, an element containing {files} repeats
198# once per target. Commands also see $REMAGE_FILE $REMAGE_INDEX $REMAGE_COUNT $REMAGE_MODE
199# $REMAGE_SOCKET $REMAGE_PID. In a binding array, actions after a `run` wait for it to succeed.
200[commands]
201
202# External decoders for anything else; they write PNG, PPM or TIFF to stdout.
203# [[decoders]]
204# match = ["*.psd"]
205# run = ["magick", "{file}[0]", "png:-"]