///// vim:set ts=4 sw=4 tw=82 noet: ///// :quotes.~: imv (1) ======= Name ---- imv - Image viewer for X11 and Wayland Description ----------- 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. Synopsis -------- 'imv' [options] [paths...] Options ------- *-h*:: Show help message and quit. *-v*:: Show version and quit. *-b* :: Set the background colour. Can either be a 6-digit hexadecimal colour code or 'checks' to show a chequered background. *-d*:: Start with overlay visible. *-f*:: Start fullscreen. *-l*:: List open files to stdout at exit. *-n* :: Start with the given path, or index selected. *-r*:: Load directories recursively. *-s* :: Set scaling mode to use. 'none' will show each image at its actual size. 'shrink' will scale down the image to fit inside the window. 'full' will both scale up and scale down the image to fit perfectly inside the window. Defaults to 'full'. *-t* :: Start in slideshow mode, with each image shown for the given number of seconds. *-u* :: Set upscaling method used by imv. *-x*:: Disable looping of input paths. Commands -------- Commands can be entered by pressing *:*. imv supports the following commands: *quit*:: Quit imv. Aliased to 'q'. *pan* :: Pan the view by the given amounts. *next* :: Move forwards by a given number of images. Aliased to 'n' *prev* :: Move backwards by a given number of images. Aliased to 'p' *goto* :: Select an image by index. '1' is the first image, '2' the second, etc. The last image can be indexed as '-1', the second last as '-2'. Aliased to 'g'. *zoom* :: Zoom into the image by the given amount. Negative values zoom out. 'actual' resets the zoom to 100%, showing the image at its actual size. Aliased to 'z'. *open* [-r] :: Add the given paths to the list of open images. If the '-r' option is specified, do so recursively. Shell expansions may be used. Aliased to 'o'. *close*:: Close the currently selected image. *fullscreen*:: Toggle fullscreen. *overlay*:: Toggle the overlay. *exec* :: Execute a shell command. imv provides various environment variables to the command executed. These are documented in the 'Environment Variables' section. *center*:: Recenter the selected image. *reset*:: Reset the view, centering the image and using the current scaling mode to rescale it. *next_frame*:: If an animated gif is currently being displayed, load the next frame. *toggle_playing*:: Toggle playback of the current image if it is an animated gif. *scaling* :: Set the current scaling mode. Setting the mode to 'next' advances it to the next mode in the list. *slideshow* <+amount|-amount|duration>:: Increase or decrease the slideshow duration by the given amount in seconds, or set its duration directly. Aliased to 'ss'. *background* :: Set the background color. 'checks' for a chequerboard pattern, or specify a 6-digit hexadecimal color code. Aliased to 'bg'. Configuration ------------- The path to a config file can be given via the *$imv_config* environment variable. If not found, imv will search for it in the following locations: - $XDG_CONFIG_HOME/imv/config (recommended) - $HOME/.config/imv/config - $HOME/.imv_config - $HOME/.imv/config - /usr/local/etc/imv_config - /etc/imv_config A default config file is shipped with imv into /etc/imv_config For documentation on the config file format, see **imv**(5). Environment Variables --------------------- When imv executes a shell command, it provides a number of environment variables, exposing imv's state. These environment variables are also available when customising the window's title, or the overlay text. *$imv_pid*:: The pid of this instance of imv. Useful for running imv-msg in scripts. *$imv_current_file*:: Path of currently selected image. *$imv_scaling_mode*:: Name of the current scaling mode. *$imv_loading*:: 1 if a new image is loading, 0 otherwise. *$imv_current_index*:: Index of current image, from 1-N. *$imv_file_count*:: Total number of files. *$imv_width*:: Width of the current image. *$imv_height*:: Height of the current image. *$imv_scale*:: Scaling of current image in percent. *$imv_slideshow_duration*:: Number of seconds each image is shown for. *$imv_slideshow_elapsed*:: How long the current image has been shown for. IPC --- imv can accept commands from another process over a unix socket. Each instance of imv will open a unix socket named '$XDG_RUNTIME_DIR/imv-$PID.sock'. If $XDG_RUNTIME_DIR is undefined, the socket is placed into '/tmp/' instead. The **imv-msg**(1) utility is provided to simpliy this from shell scripts. Authors ------- imv is written and maintained by Harry Jeffery with contributions from other developers. Full source code and other information can be found at . See Also -------- **imv**(5) **imv-msg**(1)