grim
Grab images (screenshots) from a Wayland compositor. tldr-pages
On Linux
Linux
Grab images (screenshots) from a Wayland compositor. By default, files are saved to $GRIM_DEFAULT_DIR or $XDG_PICTURES_DIR if the first variable is unset. If none of the environment variables are set, files are saved to the current working directory.
Screenshot all outputs to the default path
grimIdentifyScreenshot a specific output to the specified file
grim -o DP-1 path/to/output.pngIdentifySelect a specific region using slurp and screenshot it
grim -g "$(slurp)" path/to/output.pngIdentifyScreenshot and copy the image to the clipboard
grim - | clipboard_managerIdentifySet the output file type (default: png)
grim -t png path/to/output_fileIdentifySet the PNG compression level (default: 6)
grim -l 0..9 path/to/output.pngIdentifySet the JPEG quality level (default: 80)
grim -t jpeg -q 0..100 path/to/output.jpgIdentifyInclude cursors in the screenshot
grim -cIdentify