XNAP(1)

NAME
xnap - minimal X11 screenshot utility

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

DESCRIPTION
xnap captures screen contents from an X11 display and writes to 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 n as reported by the Xinerama extension.

OUTPUT
xnap writes a PPM (P6) image to stdout.

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

xnap > image.ppm
xnap -f | converto... whatever.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)