grim
Grab images (screenshots) from a Wayland compositor. By default, files are saved to
$GRIM_DEFAULT_DIRor$XDG_PICTURES_DIRif the first variable is unset. If none of the environment variables are set, files are saved to the current working directory. More information: https://manned.org/grim.
- Screenshot all outputs to the default path:
grim
- Screenshot a specific output to the specified file:
grim -o
- Select a specific region using
slurpand screenshot it:
grim -g "$(slurp)"
- Screenshot and copy the image to the clipboard:
grim - |
- Set the output file type (default:
png):
grim -t
- Set the PNG compression level (default: 6):
grim -l
- Set the JPEG quality level (default: 80):
grim -t jpeg -q
- Include cursors in the screenshot:
grim -c
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
