commands.sh

maim

linux

Screenshot utility.

More info →

Options (5)

-s, --selectboolean

Capture a screenshot of the selected region

Example: maim {{[-s|--select]}} {{path/to/screenshot.png}}
boolean

Capture a screenshot of the selected region and save it in the clipboard (requires `xclip`)

Example: maim {{[-s|--select]}} | xclip {{[-se|-selection]}} {{[c|clipboard]}} {{[-t|-target]}} image/png
boolean

Capture a screenshot of the selected region and save it in the clipboard (requires `xclip`)

Example: maim {{[-s|--select]}} | xclip {{[-se|-selection]}} {{[c|clipboard]}} {{[-t|-target]}} image/png
-tboolean

Capture a screenshot of the selected region and save it in the clipboard (requires `xclip`)

Example: maim {{[-s|--select]}} | xclip {{[-se|-selection]}} {{[c|clipboard]}} {{[-t|-target]}} image/png
-i, --windowboolean

Capture a screenshot of the current active window (requires `xdotool`)

Example: maim {{[-i|--window]}} $(xdotool getactivewindow) {{path/to/screenshot.png}}

Examples (4)

Capture a screenshot and save it to the given path

maim path/to/screenshot.png

Capture a screenshot of the selected region

maim [-s|--select] path/to/screenshot.png

Capture a screenshot of the selected region and save it in the clipboard (requires `xclip`)

maim [-s|--select] | xclip [-se|-selection] [c|clipboard] [-t|-target] image/png

Capture a screenshot of the current active window (requires `xdotool`)

maim [-i|--window] $(xdotool getactivewindow) path/to/screenshot.png
made by @shridhargupta | data from tldr-pages