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 or checks to 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 the bind command. This option can be used multiple times. Commands are run in the order that they have been passed to imv.
  • -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. 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. crop will scale and crop the image to fill the window. Defaults to full. ✨
  • -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 by imv.
  • -w <windowtitle> β€” Set window title when starting imv.
  • -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 β€” Quit imv. Aliased to q. 🫢
  • pan <x> <y> β€” Pan the view by the given amounts.
  • next <offset> β€” Move forwards by a given number of images. Aliased to n
  • prev <offset> β€” Move backwards by a given number of images. Aliased to p
  • goto <index> β€” 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 <amount|actual> β€” 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.
  • 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 -r option is specified, do so recursively. Shell expansions may be used. Aliased to o.
  • 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. 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 <none|shrink|full|crop|next> β€” Set the current scaling mode. Setting the mode to next advances it to the next mode in the list.
  • upscaling <linear|nearest_neighbour|next> β€” Set the current upscaling method. Setting the method to next advances 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 to ss.
  • background <checks|hexadecimal-code> β€” Set the background color. checks for a chequerboard pattern, or specify a 6-digit hexadecimal color code. Aliased to bg.
  • 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, see imv(5).

🌈 DEFAULT BINDS 🌈

imv comes with several binds configured by default πŸ’–

  • q β€” Quit
  • Left arrow β€” Previous image
  • Right arrow β€” Next Image
  • gg β€” Go to first image
  • G β€” Go to last image
  • j β€” Pan down
  • k β€” Pan up
  • h β€” Pan left
  • l β€” Pan right
  • x β€” Close current image
  • f β€” Toggle fullscreen
  • d β€” Toggle overlay
  • p β€” Print current image to stdout
  • Up arrow β€” Zoom in
  • Down arrow β€” Zoom out
  • i β€” Zoom in
  • o β€” Zoom out
  • + β€” Zoom in
  • - β€” Zoom out
  • Ctrl+r β€” Rotate clockwise by 90 degrees
  • c β€” Center image
  • s β€” Next scaling mode
  • S β€” Next upscaling mode
  • a β€” Zoom to actual size
  • r β€” Reset zoom and pan
  • . β€” Next frame (for animations)
  • Space β€” Pause/play animations
  • t β€” Start slideshow/increase delay by 1 second
  • T β€” 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 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 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 🌈

imv(5) imv-msg(1) imv-dir(1)


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