Reference articles on history, science, culture and more
Encyclopedia

Scrot

Command-line screen capturing application

Image credit is listed at the end of this article.

scrot is a minimalist command line screen capturing application. It allows a substantial degree of flexibility by specifying parameters on command line, including the ability to invoke a third-party utility to manipulate the resulting screenshot.

01Description

Features of the program include the ability to limit the scope of capturing to a specific screen area, to set the delay (if needed to capture some menu or another UI element which is shown only when focused) and to specify the filename template using wildcards (including those of the strftime function from the C standard library). Other features include creating thumbnails of the taken screenshots and specifying the quality of the resulting image if lossy format is required.

The scrot utility follows the UNIX philosophy principles formulated by Doug McIlroy: the only thing it does is screen capturing, though it allows one to specify a command for further manipulations of a resulting file.

The ability to control scrot from the command line allows the user to run it over the network with tools like OpenSSH to get a screenshot of a remote desktop or execute it as the window manager command binding.

In February 2019, scrot was forked as part of the Resurrecting Open Source Project. This updated fork is being used for the Arch Linux package of scrot.

As of version 1.8.1, 2023-01-21, scrot does not support Wayland-based systems because, by design, Wayland is more secure than X11 and does not allow one application to capture the content of other applications' windows.

Watch videos about ScrotExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Scrot, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Images, from Wikimedia Commons:

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.