Forrest logo
back to the import tool

import:tldr:6e241

import: Capture a specific window, given its ID as displayed by `xwininfo`, into the JPEG format.
$ import -window ${window_id} ${output-jpg}
try on your machine

This command is importing a screenshot of a specific window into a jpg image file.

Here is the breakdown of each part of the command:

  • import is a command-line tool commonly used in UNIX-like operating systems to capture screenshots or import images.
  • -window ${window_id} is an argument that specifies the particular window to capture. ${window_id} represents the unique identifier of the window you want to capture. It could be obtained using other commands or tools.
  • ${output-jpg} represents the name and location of the output JPG file that will be created. This could be a file path or just a filename if you want to save it in the current directory.

In summary, by running this command, the specified window will be captured, and the screenshot will be saved as a JPG image file with the given name and location.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the import tool