IMV(5) | IMV(5) |
NAME
imv - imv configuration file
DESCRIPTION
imv can be customised with this configuration file, changing its default behaviour, key bindings, and appearance.
The imv configuration file is an ini-style file, with multiple key = value settings, separated into several '[section]'s.
OPTIONS
The [options] section accepts the following settings:
background = <hex-code|checks>
fullscreen = <true|false>
width = <width>
height = <height>
initial_pan = <pan_factor_x> <pan_factor_y>
list_files_at_exit = <true|false>
loop_input = <true|false>
overlay = <true|false>
overlay_font = <typeface:size>
overlay_text = <text>
overlay_text_color = <hex-code>
overlay_text_alpha = <hex-code>
overlay_background_color = <hex-code>
overlay_background_alpha = <hex-code>
overlay_position_bottom = <true|false>
recursively = <true|false>
scaling_mode = <none|shrink|full|crop>
slideshow_duration = <duration>
suppress_default_binds = <true|false>
title_text = <text>
upscaling_method = <linear|nearest_neighbour>
ALIASES
The [aliases] section allows aliases to be added for imv’s build in commands. For example, x = close would add a x command that simply executes the close command. Any arguments provided to an alias are appended to the command configured by the alias.
BINDS
The [binds] section allows custom key bindings to be added to imv.
Binds are in the format key combination = command. A key combination can consist of multiple keys in succession. Multiple commands for a single key combination can be defined by separating each command with a ;. Single and double quotes are honoured, as is escaping with a backslash, to allow the proper quoting of shell commands.
Single keys such as q are just that: q = quit will bind the q key to the quit command.
Modifier keys can be specified by prefixing them: Ctrl+q, Meta+f, Shift+G. If multiple modifier keys are desired, they are specified in the order Ctrl+Meta+Shift. When a key’s name is more than a single character, or a modifier is used it must be wrapped in < and >, for example: <Ctrl+q>.
Multiple keys in succession can be specified by listing them in order: gg = goto 1 will bind two presses of the g key to jump to the first image, and <Ctrl+a>p = exec echo hi will bind the key sequence of Ctrl+a followed by p to executing the shell command echo hi.
Many keys, such as <, and > have special names. On X11, these can be easily found with the xev(1) command. For example, ! is called exclam, < is called less, > is called greater.
A complete list of keysyms can also be found on most systems with the dumpkeys -l command.
09/29/2024 |