scrot
TLDR
Capture a screenshot and save with current date as filename
SYNOPSIS
scrot [options] [file]
DESCRIPTION
scrot (SCReenshot) is a simple command-line screen capture utility for X11. It can capture the entire screen, specific windows, or user-selected regions. Screenshots are saved as PNG, JPEG, or GIF files.
The tool supports delayed captures, thumbnails, and executing commands on the resulting image (useful for automatic uploading or editing). Special format strings allow dynamic filenames based on date, time, and dimensions.
PARAMETERS
-s, --select
Interactively select a window or rectangle with mouse-u, --focused
Capture the currently focused window-b, --border
Include window border with -u-d, --delay sec
Wait sec seconds before taking shot-c, --count
Display countdown when using delay-q, --quality num
Image quality (1-100) for JPEG-t, --thumb num
Generate thumbnail of specified percentage-e, --exec cmd
Execute command on saved image-l, --line style
Set line style for selection (color, width, etc.)-i, --ignorekeyboard
Don't exit selection mode on keyboard input-p, --pointer
Include mouse pointer in screenshot-o, --overwrite
Overwrite file if it exists
CAVEATS
X11 only; for Wayland use grim with slurp. Selection mode may not work with all window managers. Some compositors may cause issues with window captures.
HISTORY
Originally written by Tom Gilbert, who also created feh. A simple, focused screenshot tool that has been widely used in Linux desktop environments, often integrated with keyboard shortcuts for quick captures.


