Forrest logo
tool overview
On this page you find all important commands for the CLI tool maim. If the command you are looking for is missing please ask our AI.

maim

Maim is a command line tool used for taking screenshots on Linux systems. It is designed to be simple, fast, and efficient.

With maim, you can capture either the entire screen or a specific area by specifying the coordinates. This flexibility allows you to capture exactly what you need, whether it's a full-screen image or just a specific window.

Maim supports various output formats, such as PNG, JPEG, and PPM. You can choose the desired format by specifying the file extension of the output file.

Additionally, maim allows you to add a delay before capturing the screenshot, which can be useful for capturing transient content or time-limited displays.

Maim also supports taking screenshots of multiple displays simultaneously, making it convenient for systems with multiple monitors.

Lastly, maim can also be integrated with other command line tools, such as xclip or xargs, for further manipulation or automation of the captured screenshots.

List of commands for maim:

  • maim:tldr:0fc92 maim: Capture a screenshot of the selected region and save it in the clipboard (requires `xclip`).
    $ maim --select | xclip -selection clipboard -target image/png
    try on your machine
    explain this command
  • maim:tldr:152a7 maim: Capture a screenshot of the selected region.
    $ maim --select ${path-to-screenshot-png}
    try on your machine
    explain this command
  • maim:tldr:2ede6 maim: Capture a screenshot of the current active window (requires `xdotool`).
    $ maim --window $(xdotool getactivewindow) ${path-to-screenshot-png}
    try on your machine
    explain this command
  • maim:tldr:999c8 maim: Capture a screenshot and save it to the given path.
    $ maim ${path-to-screenshot-png}
    try on your machine
    explain this command
tool overview