magick import

Capture some or all of an X server screen and save the image to a file. See also: magick. More information: https://imagemagick.org/script/import.php.

magick import -window root {{path/to/output.ps}}

magick import -window root -display {{remote_host}}:{{screen}}.{{display}} {{path/to/output.png}}

magick import -window {{window_id}} {{path/to/output.jpg}}