.\" Generated by scdoc 1.11.5 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "grim" "1" "2026\-09\-01" .PP .SH NAME .PP grim \- grab images from a Wayland compositor .PP .SH SYNOPSIS .PP \fBgrim\fR [options.\&.\&.\&] [output\-file] .PP .SH DESCRIPTION .PP grim is a command\-line utility to take screenshots of Wayland desktops.\& For now it requires support for the screencopy protocol to work.\& Support for the xdg\-output protocol is optional, but improves fractional scaling support.\& .PP grim will write an image to \fIoutput\-file\fR, or to a timestamped file name in \fB$GRIM_DEFAULT_DIR\fR if not specified.\& If \fB$GRIM_DEFAULT_DIR\fR is not set, it falls back first to \fB$XDG_PICTURES_DIR\fR and then to the current working directory.\& If \fIoutput\-file\fR is \fB\-\fR, grim will write the image to the standard output instead.\& .PP .SH OPTIONS .PP \fB\-h\fR .RS 4 Show help message and quit.\& .PP .RE \fB\-s\fR .RS 4 Set the output image'\&s scale factor to \fIfactor\fR.\& By default, the scale factor is set to the highest of all outputs.\& .PP .RE \fB\-g\fR ", x" .RS 4 Set the region to capture, in layout coordinates.\& .PP If set to \fB\-\fR, read the region from the standard input instead.\& .PP .RE \fB\-t\fR .RS 4 Set the output image'\&s file format to \fItype\fR.\& By default, the filetype is set to \fBpng\fR, valid values are \fBpng\fR, \fBjpeg\fR or \fBppm\fR.\& .PP .RE \fB\-q\fR .RS 4 Set the output jpeg'\&s filetype compression rate to \fIquality\fR.\& By default, the jpeg quality is \fB80\fR, valid values are between 0\-100.\& .PP .RE \fB\-l\fR .RS 4 Set the output PNG'\&s filetype compression level to \fIlevel\fR.\& By default, the PNG compression level is 6 on a scale from 0 to 9.\& Level 9 gives the highest compression ratio, but may be slow; level 1 gives a lower compression ratio, but is faster.\& Level 0 does no compression at all, and produces very large files; it can be useful when grim is used in a pipeline with other commands.\& .PP .RE \fB\-o\fR .RS 4 Set the output name to capture.\& .PP .RE \fB\-c\fR .RS 4 Include cursors in the screenshot.\& .PP .RE \fB\-T\fR .RS 4 Set the identifier of a foreign toplevel handle to capture.\& .PP .RE .SH AUTHORS .PP Maintained by Simon Ser , who is assisted by other open\-source contributors.\& For more information about grim development, see .\&