11.\" Text automatically generated by txt2man
2- .TH scrot 1 "20 Jan 2023" "scrot-1.8.1 " "command line screen capture utility"
2+ .TH scrot 1 "10 Apr 2023" "scrot-1.9 " "command line screen capture utility"
33.SH NAME
44\fB scrot \fP - command line screen capture utility
55\fB
66.SH SYNOPSIS
77.nf
88.fam C
99\fB scrot \fP [\fB -bcfhimopuvz \fP ] [\fB -a \fP \fI X,Y,W,H \fP ] [\fB -C \fP \fI NAME \fP ] [\fB -D \fP \fI DISPLAY \fP ] [\fB -d \fP \fI SEC \fP ] [\fB -e \fP \fI CMD \fP ]
10- [\fB -F \fP \fI FILE \fP ] [ \fB - k\fP \fI OPT \fP ] [\fB -l \fP \fI STYLE \fP ] [\fB -M \fP \fI NUM \fP ] [\fB -n \fP \fI OPTS \fP ] [\fB -q \fP \fI NUM \fP ] [\fB -S \fP \fI CMD \fP ] [\fB -s \fP \fI OPTS \fP ]
11- [\fB -t \fP \fI NUM \fP | \fI GEOM \fP ] [ \fI FILE \fP ]
10+ [\fB -k \fP \fI OPT \fP ] [\fB -l \fP \fI STYLE \fP ] [\fB -M \fP \fI NUM \fP ] [\fB -n \fP \fI OPTS \fP ] [\fB -q \fP \fI NUM \fP ] [\fB -s \fP \fI OPTS \fP ] [\fB -t \fP % | \fI WxH \fP ]
11+ [\fB -w \fP \fI NUM \fP ] [[ \fB -F \fP ] \fI FILE \fP ]
1212
1313.fam T
1414.fi
@@ -58,16 +58,22 @@ Display a countdown when used with \fB-d\fP.
5858\fI DISPLAY \fP is the display to use; see \fB X \fP (7).
5959.TP
6060.B
61- \fB -d \fP , \fB --delay \fP \fI SEC \fP
61+ \fB -d \fP , \fB --delay \fP [b] \fI SEC \fP
6262Wait \fI SEC \fP seconds before taking a shot.
63+ When given the `b` prefix, e.g `\fB -d \fP b8`, the delay
64+ will be applied before selection.
6365.TP
6466.B
6567\fB -e \fP , \fB --exec \fP \fI CMD \fP
6668Execute \fI CMD \fP on the saved image.
6769.TP
6870.B
69- \fB -F \fP , \fB --file \fP
70- File name. See SPECIAL STRINGS.
71+ \fB -F \fP , \fB --file \fP \fI FILE \fP
72+ Specify the output file. If \fI FILE \fP is "-", \fB scrot \fP will
73+ output a PNG image to stdout. The filename is
74+ expanded according to the format specified in
75+ SPECIAL STRINGS. The output file may be specified
76+ through the \fB -F \fP option, or as a non-option argument.
7177.TP
7278.B
7379\fB -f \fP , \fB --freeze \fP
@@ -82,7 +88,7 @@ Display help and exit.
8288Don't exit for keyboard input. ESC still exits.
8389.TP
8490.B
85- \fB -k \fP , \fB --stack \fP \fI OPT \fP
91+ \fB -k \fP , \fB --stack \fP [= \fI OPT \fP ]
8692Capture stack/overlapped windows and join them. A
8793running Composite Manager is needed. \fI OPT \fP it's optional
8894join letter: v/h (vertical/horizontal). Default: h
@@ -123,21 +129,22 @@ value represents higher quality and larger
123129file size. Default: 75.
124130.TP
125131.B
126- \fB -S \fP , \fB --script \fP \fI CMD \fP
127- \fI CMD \fP is an imlib2 script.
128- .TP
129- .B
130- \fB -s \fP , \fB --select \fP \fI OPTS \fP
132+ \fB -s \fP , \fB --select \fP [=\fI OPTS \fP ]
131133Interactively select a window or rectangle with the
132134mouse, use the arrow keys to resize. See the \fB -l \fP and
133135\fB -f \fP options. \fI OPTS \fP it's optional; see SELECTION MODE
134136.TP
135137.B
136- \fB -t \fP , \fB --thumb \fP \fI NUM \fP | \fI GEOM \fP
137- Also generate a thumbnail. The argument is the
138- resolution of the thumbnail, it may be a percentage
139- \fI NUM \fP or a resolution \fI GEOM \fP . Examples: 10, 25, 320x240,
140- 500x200.
138+ \fB -t \fP , \fB --thumb \fP % | \fI WxH \fP
139+ Also generate a thumbnail. The argument represents
140+ the thumbnail's resolution: if the argument is a
141+ single number, it is a percentage of the full size
142+ screenshot's resolution; if it is 2 numbers
143+ separated by an "x" character, it is a resolution.
144+ If one of the resolution's dimensions is 0, it is
145+ replaced by a number that maintains the full size
146+ screenshot's aspect ratio. Examples: 10, 25, 320x240,
147+ 500x200, 100x0, 0x480.
141148.TP
142149.B
143150\fB -u \fP , \fB --focused \fP
@@ -148,13 +155,21 @@ Use the currently focused window.
148155Output version information and exit.
149156.TP
150157.B
158+ \fB -w \fP , \fB --window \fP
159+ Window identifier to capture.
160+ Must be a valid identifier (see \fB xwininfo \fP (1)).
161+ .TP
162+ .B
151163\fB -z \fP , \fB --silent \fP
152164Prevent beeping.
153165.TP
154166.B
155- -
156- Redirection to standard output. The output image
157- format is PNG.
167+ \fB --format \fP FMT
168+ Specify the output file format. E.g "\fB --format \fP png".
169+ If no format is specified, \fB scrot \fP will use the file
170+ extension to determine the format. If filename
171+ does not have an extension either, then PNG will
172+ be used as fallback.
158173.SH SPECIAL STRINGS
159174\fB -e \fP , \fB -F \fP and \fI FILE \fP parameters can take format specifiers that are expanded
160175by \fB scrot \fP when encountered. There are two types of format specifier:
@@ -174,7 +189,7 @@ recognised by \fBscrot\fP:
174189 $s The image's size in bytes (ignored when used in the filename).
175190 $t The image's file format (ignored when used in the filename).
176191 $w The image's width.
177- $W The name of the window (only for --select and --focused ).
192+ $W The name of the window (only for --select, --focused and --window ).
178193 \\n A literal newline (ignored when used in the filename).
179194
180195.fam T
@@ -298,6 +313,7 @@ Example:
298313.fi
299314.SH SEE ALSO
300315\fB optipng \fP (1)
316+ \fB xwininfo \fP (1)
301317.SH AUTHOR
302318\fB scrot \fP was originally developed by Tom Gilbert.
303319.PP
0 commit comments