1IMV(5) IMV(5)
2
3
4
6 imv - imv configuration file
7
9 imv can be customised with this configuration file, changing its
10 default behaviour, key bindings, and appearance.
11
12 The imv configuration file is an ini-style file, with multiple key =
13 value settings, separated into several '[section]'s.
14
16 The [options] section accepts the following settings:
17
18 background = <hex-code|checks>
19 Set the background in imv. Can either be a 6-digit hexadecimal
20 colour code, or checks for a chequered background. Defaults to
21 000000
22
23 fullscreen = <true|false>
24 Start imv fullscreen. Defaults to false.
25
26 width = <width>
27 Initial width of the imv window. Defaults to 1280.
28
29 height = <height>
30 Initial height of the imv window. Defaults to 720.
31
32 initial_pan = <pan_factor_x> <pan_factor_y>
33 Initial pan/focus position factor of the opened images. A value of
34 50 represents the middle point of the image (50%). Defaults to 50
35 50
36
37 list_files_at_exit = <true|false>
38 Print open files to stdout at exit, each on a separate line.
39 Defaults to false.
40
41 loop_input = <true|false>
42 Return to first image after viewing the last one. Defaults to true.
43
44 overlay = <true|false>
45 Start with the overlay visible. Defaults to false.
46
47 overlay_font = <typeface:size>
48 Use the specified font in the overlay. Defaults to Monospace:24.
49
50 overlay_text = <text>
51 Use the given text as the overlay’s text. The provided text is
52 shell expanded, so the output of commands can be used: $(ls) as can
53 environment variables, including the ones accessible to imv’s exec
54 command.
55
56 recursively = <true|false>
57 Load input paths recursively. Defaults to false.
58
59 scaling_mode = <none|shrink|full|crop>
60 Set scaling mode to use. none will show each image at its actual
61 size. shrink will scale down the image to fit inside the window.
62 full will both scale up and scale down the image to fit perfectly
63 inside the window. crop will scale and crop the image to fill the
64 window. Defaults to full.
65
66 slideshow_duration = <duration>
67 Start imv in slideshow mode, and set the amount of time to show
68 each image for in seconds. Defaults to 0, i.e. no slideshow.
69
70 suppress_default_binds = <true|false>
71 Disable imv’s built-in binds so they don’t conflict with custom
72 ones. Defaults to false.
73
74 title_text = <text>
75 Use the given text as the window’s title. The provided text is
76 shell expanded, so the output of commands can be used: $(ls) as can
77 environment variables, including the ones accessible to imv’s exec
78 command.
79
80 upscaling_method = <linear|nearest_neighbour>
81 Use the specified method to upscale images. Defaults to linear.
82
84 The [aliases] section allows aliases to be added for imv’s build in
85 commands. For example, x = close would add a x command that simply
86 executes the close command. Any arguments provided to an alias are
87 appended to the command configured by the alias.
88
90 The [binds] section allows custom key bindings to be added to imv.
91
92 Binds are in the format key combination = command. A key combination
93 can consist of multiple keys in succession. Multiple commands for a
94 single key combination can be defined by separating each command with a
95 ;. Single and double quotes are honoured, as is escaping with a
96 backslash, to allow the proper quoting of shell commands.
97
98 Single keys such as q are just that: q = quit will bind the q key to
99 the quit command.
100
101 Modifier keys can be specified by prefixing them: Ctrl+q, Meta+f,
102 Shift+G. If multiple modifier keys are desired, they are specified in
103 the order Ctrl+Meta+Shift. When a key’s name is more than a single
104 character, or a modifier is used it must be wrapped in < and >, for
105 example: <Ctrl+q>.
106
107 Multiple keys in succession can be specified by listing them in order:
108 gg = goto 0 will bind two presses of the g key to jump to the first
109 image, and <Ctrl+a>p = exec echo hi will bind the key sequence of
110 Ctrl+a followed by p to executing the shell command echo hi.
111
112 Many keys, such as <, and > have special names. On X11, these can be
113 easily found with the xev(1) command. For example, ! is called exclam,
114 < is called less, > is called greater.
115
116 A complete list of keysyms can also be found on most systems with the
117 dumpkeys -l command.
118
119 imv(1)
120
121
122
123 03/25/2020 IMV(5)