: μάλοκδ :

NAME

xnap - minimal X11 screenshot utility

SYNOPSIS

xnap [-f] [-w] [-s n]

DESCRIPTION

xnap captures screen contents from an X11 display and writes a PPM6 image to standard output.

By default, 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.

OPTIONS

-f

Capture the full root window; the whole screen.

-w

Capture the window currently under the pointer.

-s N

Capture screen N as reported by the Xinerama extension.

OUTPUT

xnap writes a binary PPM (P6) image to standard output (stdout).

USAGE

Redirect output to a file or pipe it to another program:

xnap > image.ppm
xnap -f > fullscreen.ppm
xnap -s 0 > screen0.ppm
xnap | convert ppm:- image.png

ENVIRONMENT

DISPLAY

Specifies the X11 display to connect to.

DEPENDENCIES

xnap requires Xlib. Optional Xinerama support may be enabled at compile time.

AUTHORS

Written by uint.

LICENSE

See the LICENSE file for the terms of redistribution.

SEE ALSO

X(7), ppm(5)