DOKK / manpages / debian 11 / maim / maim.1.en
maim(1) maim man page maim(1)

maim - make image

maim [OPTIONS] [FILEPATH]

maim (make image) is an utility that takes a screenshot of your desktop, and encodes a png or jpg image of it. By default it outputs the encoded image data directly to standard output.

Print help and exit.
Print version and exit.
Sets the xdisplay to use.
Sets the desired output format, by default maim will attempt to determine the desired output format automatically from the output file. If that fails it defaults to a lossless png format. Currently only supports `png` or `jpg`.
Sets the desired window to capture, defaults to the root window. Allows for an integer, hex, or `root` for input.
Sets the region to capture, uses local coordinates from the given window. So -g 10x30-5+0 would represent the rectangle wxh+x+y where w=10, h=30, x=-5, and y=0. x and y are the upper left location of this rectangle.
By default, maim assumes the --geometry values are in respect to the provided --window (or root if not provided). This parameter overrides this behavior by making the geometry be in respect to whatever window you provide to --parent. Allows for an integer, hex, or `root` for input.
By default, when capturing a window, maim will ignore anything beneath the specified window. This parameter overrides this and also captures elements underneath the window.
Sets the time in seconds to wait before taking a screenshot. Prints a simple message to show how many seconds are left before a screenshot is taken. See --quiet for muting this message.
By default maim super-imposes the cursor onto the image, you can disable that behavior with this flag.
An integer from 1 to 10 that determines the compression quality. 1 is the highest (and lossiest) compression available for the provided format. For example a setting of `1` with png (a lossless format) would increase filesize and decrease decoding time. While a setting of `1` on a jpeg would create a pixel mush.
Enables an interactive selection mode where you may select the desired region or window before a screenshot is captured. Uses the settings below to determine the visuals and settings of slop.

Sets the selection rectangle's thickness.
Sets the padding size for the selection, this can be negative.
How far in pixels the mouse can move after clicking, and still be detected as a normal click instead of a click-and-drag. Setting this to 0 will disable window selections. Alternatively setting it to 9999999 would force a window selection.
Sets the selection rectangle's color. Supports RGB or RGBA input. Depending on the system's window manager/OpenGL support, the opacity may be ignored.
This sets the vertex shader, and fragment shader combo to use when drawing the final framebuffer to the screen. This obviously only works when OpenGL is enabled. The shaders are loaded from ~/.config/maim. See https://github.com/naelstrof/slop for more information on how to create your own shaders.
Sets the level of aggressiveness when trying to remove window decorations. `0' is off, `1' will try lightly to remove decorations, and `2' will recursively descend into the root tree until it gets the deepest available visible child under the mouse. Defaults to `0'.
Instead of outlining a selection, maim will highlight it instead. This is particularly useful if the color is set to an opacity lower than 1.
Allows you to click twice to indicate a selection, rather than click-dragging.
Disable any unnecessary cerr output. Any warnings or info simply won't print.
Disables the ability to cancel selections with the keyboard.
Disables graphics hardware acceleration.

Screenshot the active window and save it to the clipboard for quick pasting.

maim -i $(xdotool getactivewindow) | xclip -selection clipboard -t image/png

Save a desktop screenshot with a unique ordered timestamp in the Pictures folder.

maim ~/Pictures/$(date +%s).png

Save screenshot to the Pictures folder and add it to the clipboard at the same time.

maim | tee ~/Pictures/$(date +%s).png | xclip -selection clipboard -t image/png

Prompt for a region to screenshot. Add a fancy shadow to it, then save it to shadow.png.

maim -s | convert - \( +clone -background black -shadow 80x3+5+5 \) +swap -background none -layers merge +repage shadow.png

slop(1)

No known bugs.

Dalton Nell (naelstrof@gmail.com)

2017-03-21 Linux