1
1
.\" 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"
3
3
.SH NAME
4
4
\fB scrot \fP - command line screen capture utility
5
5
\fB
6
6
.SH SYNOPSIS
7
7
.nf
8
8
.fam C
9
9
\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 ]
12
12
13
13
.fam T
14
14
.fi
@@ -58,16 +58,22 @@ Display a countdown when used with \fB-d\fP.
58
58
\fI DISPLAY \fP is the display to use; see \fB X \fP (7).
59
59
.TP
60
60
.B
61
- \fB -d \fP , \fB --delay \fP \fI SEC \fP
61
+ \fB -d \fP , \fB --delay \fP [b] \fI SEC \fP
62
62
Wait \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.
63
65
.TP
64
66
.B
65
67
\fB -e \fP , \fB --exec \fP \fI CMD \fP
66
68
Execute \fI CMD \fP on the saved image.
67
69
.TP
68
70
.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.
71
77
.TP
72
78
.B
73
79
\fB -f \fP , \fB --freeze \fP
@@ -82,7 +88,7 @@ Display help and exit.
82
88
Don't exit for keyboard input. ESC still exits.
83
89
.TP
84
90
.B
85
- \fB -k \fP , \fB --stack \fP \fI OPT \fP
91
+ \fB -k \fP , \fB --stack \fP [= \fI OPT \fP ]
86
92
Capture stack/overlapped windows and join them. A
87
93
running Composite Manager is needed. \fI OPT \fP it's optional
88
94
join letter: v/h (vertical/horizontal). Default: h
@@ -123,21 +129,22 @@ value represents higher quality and larger
123
129
file size. Default: 75.
124
130
.TP
125
131
.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 ]
131
133
Interactively select a window or rectangle with the
132
134
mouse, use the arrow keys to resize. See the \fB -l \fP and
133
135
\fB -f \fP options. \fI OPTS \fP it's optional; see SELECTION MODE
134
136
.TP
135
137
.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.
141
148
.TP
142
149
.B
143
150
\fB -u \fP , \fB --focused \fP
@@ -148,13 +155,21 @@ Use the currently focused window.
148
155
Output version information and exit.
149
156
.TP
150
157
.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
151
163
\fB -z \fP , \fB --silent \fP
152
164
Prevent beeping.
153
165
.TP
154
166
.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.
158
173
.SH SPECIAL STRINGS
159
174
\fB -e \fP , \fB -F \fP and \fI FILE \fP parameters can take format specifiers that are expanded
160
175
by \fB scrot \fP when encountered. There are two types of format specifier:
@@ -174,7 +189,7 @@ recognised by \fBscrot\fP:
174
189
$s The image's size in bytes (ignored when used in the filename).
175
190
$t The image's file format (ignored when used in the filename).
176
191
$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 ).
178
193
\\n A literal newline (ignored when used in the filename).
179
194
180
195
.fam T
@@ -298,6 +313,7 @@ Example:
298
313
.fi
299
314
.SH SEE ALSO
300
315
\fB optipng \fP (1)
316
+ \fB xwininfo \fP (1)
301
317
.SH AUTHOR
302
318
\fB scrot \fP was originally developed by Tom Gilbert.
303
319
.PP
0 commit comments