summaryrefslogtreecommitdiff
path: root/xnap.1
blob: 90b70880dffe0f385a7f0b85262ac6295d50f9e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.TH XNAP 1 xnap\-1.0
.SH NAME
xnap \- minimal X11 screenshot utility
.SH SYNOPSIS
.B xnap
.RB [ \-f ]
.RB [ \-w ]
.RB [ \-s
.IR n ]
.SH DESCRIPTION
.B xnap
captures screen contents from an X11 display and writes a PPM6 image
to standard output.
.PP
By default,
.B xnap
allows the user to select a rectangular region using the mouse.
The selection rectangle is drawn, inverted then removed after the selection
is complete.
.SH OPTIONS
.TP
.B \-f
Capture the full root window; the whole screen.
.TP
.B \-w
Capture the window currently under the pointer.
.TP
.BI \-s " N"
Capture screen N as reported by the Xinerama extension.
.SH OUTPUT
.B xnap
writes a binary PPM (P6) image to standard output (stdout).
.SH USAGE
Redirect output to a file or pipe it to another program:
.PP
.nf
xnap > image.ppm
xnap -f > fullscreen.ppm
xnap -s 0 > screen0.ppm
xnap | convert ppm:- image.png
.fi
.SH ENVIRONMENT
.TP
.B DISPLAY
Specifies the X11 display to connect to.
.SH DEPENDENCIES
.B xnap
requires Xlib.
Optional Xinerama support may be enabled at compile time.
.SH AUTHORS
Written by uint.
.SH LICENSE
See the LICENSE file for the terms of redistribution.
.SH SEE ALSO
.BR X (7),
.BR ppm (5)