'\" t .\" Title: imvr .\" Author: [see the "Authors" section] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 08/08/2019 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" .TH "IMVR" "1" "08/08/2019" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" imv \- Image viewer for X11 and Wayland .SH "DESCRIPTION" .sp imv is an image viewer for X11 and Wayland, aimed at users of tiling window managers\&. It supports a wide variety of image file formats, including animated gif files\&. imv will automatically reload the current image, if it is changed on disk\&. .sp In Debian the executable and the associated manpages were renamed from imv to imvr because of a name clash\&. .SH "SYNOPSIS" .sp \fIimvr\fR [options] [paths\&...] .SH "OPTIONS" .PP \fB\-h\fR .RS 4 Show help message and quit\&. .RE .PP \fB\-b\fR .RS 4 Set the background colour\&. Can either be a 6\-digit hexadecimal colour code or \fIchecks\fR to show a chequered background\&. .RE .PP \fB\-d\fR .RS 4 Start with overlay visible\&. .RE .PP \fB\-f\fR .RS 4 Start fullscreen\&. .RE .PP \fB\-l\fR .RS 4 List open files to stdout at exit\&. .RE .PP \fB\-n\fR .RS 4 Start with the given path, or index selected\&. .RE .PP \fB\-r\fR .RS 4 Load directories recursively\&. .RE .PP \fB\-s\fR .RS 4 Set scaling mode to use\&. \fInone\fR will show each image at its actual size\&. \fIshrink\fR will scale down the image to fit inside the window\&. \fIfull\fR will both scale up and scale down the image to fit perfectly inside the window\&. Defaults to \fIfull\fR\&. .RE .PP \fB\-t\fR .RS 4 Start in slideshow mode, with each image shown for the given number of seconds\&. .RE .PP \fB\-u\fR .RS 4 Set upscaling method used by imv\&. .RE .PP \fB\-x\fR .RS 4 Disable looping of input paths\&. .RE .SH "COMMANDS" .sp Commands can be entered by pressing \fB:\fR\&. imv supports the following commands: .PP \fBquit\fR .RS 4 Quit imv\&. .RE .PP \fBpan\fR .RS 4 Pan the view by the given amounts\&. .RE .PP \fBselect_rel\fR .RS 4 Select a different image\&. \fI1\fR is the next one, \fI\-1\fR is the previous\&. .RE .PP \fBselect_abs\fR .RS 4 Select an image by index\&. \fI1\fR is the first image, \fI2\fR the second, etc\&. The last image can be indexed as \fI\-1\fR, the second last as \fI\-2\fR\&. .RE .PP \fBzoom\fR .RS 4 Zoom into the image by the given amount\&. Negative values zoom out\&. \fIactual\fR resets the zoom to 100%, showing the image at its actual size\&. .RE .PP \fBopen\fR [\-r] .RS 4 Add the given paths to the list of open images\&. If the \fI\-r\fR option is specified, do so recursively\&. Shell expansions may be used\&. .RE .PP \fBclose\fR .RS 4 Close the currently selected image\&. .RE .PP \fBfullscreen\fR .RS 4 Toggle fullscreen\&. .RE .PP \fBoverlay\fR .RS 4 Toggle the overlay\&. .RE .PP \fBexec\fR .RS 4 Execute a shell command\&. imv provides various environment variables to the command executed\&. These are documented in the \fIEnvironment Variables\fR section\&. .RE .PP \fBcenter\fR .RS 4 Recenter the selected image\&. .RE .PP \fBreset\fR .RS 4 Reset the view, centering the image and using the current scaling mode to rescale it\&. .RE .PP \fBnext_frame\fR .RS 4 If an animated gif is currently being displayed, load the next frame\&. .RE .PP \fBtoggle_playing\fR .RS 4 Toggle playback of the current image if it is an animated gif\&. .RE .PP \fBscaling_mode\fR .RS 4 Set the current scaling mode\&. .RE .PP \fBslideshow_duration\fR .RS 4 Change the slideshow duration by the given amount in seconds\&. .RE .SH "CONFIGURATION" .sp The path to a config file can be given via the \fB$imv_config\fR environment variable\&. If not found, imv will search for it in the following locations: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} $XDG_CONFIG_HOME/imv/config (recommended) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} $HOME/\&.config/imv/config .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} $HOME/\&.imv_config .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} $HOME/\&.imv/config .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} /usr/local/etc/imv_config .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} /etc/imv_config .RE .sp A default config file is shipped with imv into /etc/imv_config .sp For documentation on the config file format, see \fBimvr\fR(5)\&. .SH "ENVIRONMENT VARIABLES" .sp When imv executes a shell command, it provides a number of environment variables, exposing imv\(cqs state\&. These environment variables are also available when customising the window\(cqs title, or the overlay text\&. .PP \fB$imv_current_file\fR .RS 4 Path of currently selected image\&. .RE .PP \fB$imv_scaling_mode\fR .RS 4 Name of the current scaling mode\&. .RE .PP \fB$imv_loading\fR .RS 4 1 if a new image is loading, 0 otherwise\&. .RE .PP \fB$imv_current_index\fR .RS 4 Index of current image, from 1\-N\&. .RE .PP \fB$imv_file_count\fR .RS 4 Total number of files\&. .RE .PP \fB$imv_width\fR .RS 4 Width of the current image\&. .RE .PP \fB$imv_height\fR .RS 4 Height of the current image\&. .RE .PP \fB$imv_scale\fR .RS 4 Scaling of current image in percent\&. .RE .PP \fB$imv_slideshow_duration\fR .RS 4 Number of seconds each image is shown for\&. .RE .PP \fB$imv_slideshow_elapsed\fR .RS 4 How long the current image has been shown for\&. .RE .SH "AUTHORS" .sp imv is written and maintained by Harry Jeffery with contributions from other developers\&. .sp Full source code and other information can be found at https://github\&.com/eXeC64/imv\&. .SH "SEE ALSO" .sp \fBimvr\fR(5)