IMV(1)
π imv(1) β the manual, but make it cute π
okay bestie, sit down, we're learning imv(1) today. yes this is a real manual page. yes it slaps. let's go π¦
β¨ NAME β¨
imv β Image viewer for X11 and Wayland
πΈ DESCRIPTION πΈ
imv is an image viewer for X11 and Wayland, and it's literally made for the tiling-window-manager girlies π«Ά. It supports a wide variety of image file formats, including animated gif files (yes, the moving ones, iconic). And the way that it will automatically reload the current image if it is changed on disk?? main character behavior, no cap. π₯
β SYNOPSIS β
imv [options] [paths...]
π OPTIONS π
-hβ Show help message and quit. bye, love u π-vβ Show version and quit.-b<background>β Set the background colour. Can either be a 6-digit hexadecimal colour code orchecksto show a chequered background. π-c<command>β Specify a command to be run on launch, after the configuration has been loaded. Can be used to configure custom keys with thebindcommand. This option can be used multiple times. Commands are run in the order that they have been passed toimv.-dβ Start with overlay visible. π-fβ Start fullscreen.-i<id>β Set the X11 resource name/wayland app id of the created window.-lβ List open files to stdout at exit.-n<path|index>β Start with the given path, or index selected.-rβ Load directories recursively. π-s<none|shrink|full|crop>β Set scaling mode to use.nonewill show each image at its actual size.shrinkwill scale down the image to fit inside the window.fullwill both scale up and scale down the image to fit perfectly inside the window.cropwill scale and crop the image to fill the window. Defaults tofull. β¨-t<slideshow_duration>β Start in slideshow mode, with each image shown for the given number of seconds.-u<linear|nearest_neighbour>β Set upscaling method used byimv.-w<windowtitle>β Set window title when startingimv.-xβ Disable looping of input paths.-W<width>β Initial width of window.-H<height>β Initial height of window.
π§ COMMANDS π§
Commands can be entered by pressing :. imv supports the following commands:
quitβ Quitimv. Aliased toq. π«Άpan <x> <y>β Pan the view by the given amounts.next <offset>β Move forwards by a given number of images. Aliased tonprev <offset>β Move backwards by a given number of images. Aliased topgoto <index>β Select an image by index.1is the first image,2the second, etc. The last image can be indexed as-1, the second last as-2. Aliased tog.zoom <amount|actual>β Zoom into the image by the given amount. Negative values zoom out.actualresets the zoom to 100%, showing the image at its actual size. Aliased toz.rotate <'to'|by> <angle>β Rotate image clockwise by/to the given amount in degrees.flip <'horizontal'|vertical>β Flip image horizontally/vertically (across vertical/horizontal axis).open [-r] <paths ...>β Add the given paths to the list of open images. If the-roption is specified, do so recursively. Shell expansions may be used. Aliased too.close [index|all]β Close the currently selected image, or the image at the given index, or all images.fullscreenβ Toggle fullscreen.overlayβ Toggle the overlay.exec <command>β Execute a shell command.imvprovides 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 <none|shrink|full|crop|next>β Set the current scaling mode. Setting the mode tonextadvances it to the next mode in the list.upscaling <linear|nearest_neighbour|next>β Set the current upscaling method. Setting the method tonextadvances it to the next method 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 toss.background <checks|hexadecimal-code>β Set the background color.checksfor a chequerboard pattern, or specify a 6-digit hexadecimal color code. Aliased tobg.bind <keys> <commands>β Binds an action to a set of key inputs. Uses the same syntax as the config file, but without an equals sign between the keys and the commands. For more information on syntax, seeimv(5).
π DEFAULT BINDS π
imv comes with several binds configured by default π
qβ QuitLeft arrowβ Previous imageRight arrowβ Next Imageggβ Go to first imageGβ Go to last imagejβ Pan downkβ Pan uphβ Pan leftlβ Pan rightxβ Close current imagefβ Toggle fullscreendβ Toggle overlaypβ Print current image to stdoutUp arrowβ Zoom inDown arrowβ Zoom outiβ Zoom inoβ Zoom out+β Zoom in-β Zoom outCtrl+rβ Rotate clockwise by 90 degreescβ Center imagesβ Next scaling modeSβ Next upscaling modeaβ Zoom to actual sizerβ Reset zoom and pan.β Next frame (for animations)Spaceβ Pause/play animationstβ Start slideshow/increase delay by 1 secondTβ Stop slideshow/decrease delay by 1 second
π 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, in order bestie:
$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. fr fr. β¨
$imv_pidβ The pid of this instance ofimv. Useful for runningimv-msgin scripts.$imv_current_fileβ Path of currently selected image.$imv_scaling_modeβ Name of the current scaling mode.$imv_loadingβ1if a new image is loading,0otherwise.$imv_current_indexβ Index of current image, from1-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 simplify this from shell scripts.
π AUTHORS π
imv is written and maintained by Harry Jeffery <me@harry.pm> with contributions from other developers. slay.
Full source code and other information can be found at https://sr.ht/~exec64/imv.
π SEE ALSO π
and that's the whole page bestie!! π this version of IMV(1) is dated 12/14/2025 β go forth and view images, you absolute icon πβ¨
π¦ where this page comes from
- ubuntu resolute: imv 5.0.1-3 Β· MIT
- ubuntu stonking: imv 5.0.1-3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms