vimivrc5
Configuration files for the vimiv image viewer
Usage
/etc/vimiv/vimivrc, $XDG_CONFIG_HOME/vimiv/vimivrc, ~/.vimiv/vimivrc
/etc/vimiv/keys.conf, $XDG_CONFIG_HOME/vimiv/keys.conf, ~/.vimiv/keys.conf
Overview
Vimiv is configured via two files:
•
|
the vimivrc for basic configuration |
|---|---|
•
|
the keys.conf for keybindings |
Per default these files are installed to /etc/vimiv/. It is considered best practice to copy them to $XDG_CONFIG_HOME/vimiv/ and configure the copied files.
More information in a nicer format is available at:
⟨http://karlch.github.io/vimiv/documentation/configuration/⟩
Settings
Settings are configured in the vimivrc file. This file is separated into four sections:
•
|
GENERAL |
|---|---|
•
|
LIBRARY |
•
|
EDIT |
•
|
ALIASES |
The first three sections group settings, the fourth is used to define aliases. What each setting means and what values are possible is explained below:
General
start_fullscreen,Bool-
If yes, start fullscreen.
start_slideshow,Bool-
If yes, start slideshow at startup.
slideshow_delay,Float-
Specify the delay for the slideshow.
shuffle,Bool-
If yes, shuffle the images in the filelist randomly.
display_bar,Bool-
If yes, show the statusbar at the bottom. Else hide it.Note that error messages are still displayed, even if the statusbar is hidden.
default_thumbsize,Tuple-
Size for the thumbnails in the form of (x, y).
geometry,String-
String in the form of "WIDTHxHEIGHT" specifying the default size for the window. Note that not all window managers respect this setting.
recursive,Bool-
If yes, search the given directory recursively for images at startup.
rescale_svg,Bool-
If yes, rescale vector graphics automatically by reloading the image. Otherwise simply zoom as if they were a normal image.
overzoom,Float-
Float defining the maximum amount to scale images up by trying to fit the window when first loading the image.
search_case_sensitive,Bool-
If yes, search case sensitively. Ignore case otherwise.
incsearch,Bool-
If yes, search incrementally when typing.
copy_to_primary,Bool-
If yes, copy to primary selection instead of clipboard.
commandline_padding,Int-
Padding to use in the command line and statusbar.
thumb_padding,Int-
Padding to use between thumbnails. Note: Additionally to the padding column spacing gets updated dynamically to best fit the current window width.
completion_height,Int-
Height of the completion menu when showing command line completions.
play\_animations,Bool-
If yes, animated gif are played. Otherwise stay at the first/current frame.
Library
start_show_library,Bool-
If yes, always show library at start-up.
library_width,Int-
Default width of the library when an image is open.
expand_lib,Bool-
If yes, automatically expand the library to full window size if no image is open.
border_width,Int-
Width of the border separating library and image.
markup,String-
Markup used to highlight search results. This must be a correct markup opening in the form of one <span ...> element as it gets closed with </span>
show_hidden,Bool-
If yes, show hidden files in the library and open hidden images.
desktop_start_dir,String-
The directory in which vimiv should start if opened via the .desktop file.
file_check_amount,Int-
The amount of files vimiv should check in a directory for whether they are images or not. This affects the size column of directories in the library. As soon as this number is reached, checks are stopped and a + is appended, e.g. 30+. A higher number increases precision and information at the cost of speed.
tilde_in_statusbar,Bool-
If yes, collapse $HOME to ~ in the statusbar in the library.
Edit
autosave_images,Bool-
If yes, automatically save rotated/flipped images to disk. Otherwise to keep changes :w must be called explicitly.
Aliases
It is possible to configure aliases for the command line in this section. An alias is defined in the form of:
aliasname: command
See also: the alias command.
Keybindings
Keybindings are defined in the keys.conf file. Similar to the vimivrc, this file is split up into sections:
•
|
IMAGE: Keybindings defined here apply in image mode. |
|---|---|
•
|
THUMBNAIL: Keybindings defined here apply in thumbnail mode. |
•
|
LIBRARY: Keybindings defined here apply in library mode. |
•
|
MANIPULATE: Keybindings defined here apply in manipulate mode. |
•
|
COMMAND: Keybindings defined here apply in the command line. |
Keybindings are defined in the form of:
keyname: command [arguments]
keyname has to be a valid key symbol like "a" or "b", but also e.g. "colon" for ":". A useful tool in X to check for these names interactively is xev.
Supported modifiers are:
•
|
Shift via Shift+keyname |
|---|---|
•
|
Control via ^keyname |
•
|
Alt via Alt+keyname |
command [arguments] has to be a valid vimiv command with correct arguments. For a complete list of commands with explanations check the commands documentation.
Mouse bindings are defined in the same form. Simply use "Button" and the corresponding number like "Button1" as keyname.
Commands
|
Accept changes made in manipulate. |
|---|---|
|
Add an alias for a command. |
|
Rotate all images in the current filelist according to exif data. |
|
Scroll to the center of the image. |
|
Copy the absolute path of the currently selected file to the clipboard. |
|
Copy the base name of the currently selected file to the clipboard. |
|
Delete the current image. |
|
Discard any changes made in manipulate mode and leave it. |
|
Edit brightness, contrast or saturation of the current image. |
|
Move to the first image of the filelist in image/thumbnail mode. |
|
Move to the first file of the filelist in the library. |
|
Fit the image to the current window size.. |
|
Fit the image horizontally to the current window size. |
|
Fit the image vertically to the current window size. |
|
Flip the current image. |
|
Focus the library. |
|
Format all currently open filenames. |
|
Toggle fullscreen mode. |
|
Move to the last image of the filelist in image/thumbnail mode. |
|
Move to the last file of the filelist in the library. |
|
Toggle the library. |
|
Enter manipulate mode. |
|
Mark the currently selected image. |
|
Mark all images in the current filelist. |
|
Mark all images between the last two marked images. |
|
Toggle the current mark status. |
|
Move up one directory in the library. |
|
Move to the next image in the filelist of image mode. |
|
Force moving to the next image in the filelist of image mode. |
|
Move to the previous image in the filelist of image mode. |
|
Force moving to the previous image in the filelist of image mode. |
|
Quit vimiv. |
|
Force quitting vimiv. |
|
Reload the library. |
|
Rotate the image counter-clockwise. |
|
Change the value of a setting. |
|
Toggle the slideshow. |
|
Write the names of all currently marked images to a tagfile. |
|
Load all images in a tagfile into image mode. |
|
Delete a tagfile. |
|
Toggle thumbnail mode. |
|
Undelete an image. |
|
Focus the widget last focused before the library. |
|
Display pop-up with version information. |
|
Explicitly save changed images to disk. |
|
Same as :w but also quit vimiv. |
|
Zoom in. |
|
Zoom out. |
|
Zoom image to a given percentage. |