XWD(1)
β¨ XWD(1) β¨
okay so bestie, lemme put you on to xwintoppm π
this is the manual page for it, and it's genuinely iconic.
π NAME π
xwintoppm β dump an image of an X window π«Ά
πΈ SYNOPSIS πΈ
xwintoppm [-debug] [-help] [-nobdrs] [-out file] [-xy] [-frame] [-add
value] [-root | -id id | -name name ] [-icmap] [-screen] [-display
display]
π DESCRIPTION π
So Xwintoppm is an X Window System window dumping utility, periodt. It lets X users store window images in ppm(5) format β and then that file can be read by a whole bunch of other X utilities for redisplay, printing, editing, formatting, archiving, image processing, etc. the way it just slots into your whole workflow?? obsessed. π₯
β¨ OPTIONS β¨
-display displayβ this argument lets you specify the server to connect to; seeX(1).-helpβ prints out the `Usage:' command syntax summary. π«Ά-nobdrsβ this one says the window dump should not include the pixels that make up the X window border. super useful when you wanna drop the window contents into a document as an illustration. π-out fileβ lets you explicitly specify the output file right there on the command line. the default is to output to standard out.-xyβ this option applies to color displays only, just so you know. it selectsXYformat dumping instead of the defaultZformat. π-add valueβ specifies a signed value to be added to every pixel. yes, every single one.-frameβ indicates that the window manager frame should be included when you're manually selecting a window. π-rootβ indicates the root window should be selected for the window dump, so you don't have to make the user pick a window with the pointer. π-id idβ indicates the window with the specified resource id should be selected for the window dump, without requiring the user to select a window with the pointer.-name nameβ indicates the window with the specifiedWM_NAMEproperty should be selected for the window dump, again without requiring the user to pick a window with the pointer.-icmapβ normally the colormap of the chosen window is used to obtain RGB values. this option forces the first installed colormap of the screen to be used instead. π₯-screenβ indicates that theGetImagerequest used to obtain the image should be done on the root window rather than directly on the specified window. that way you can grab pieces of other windows that overlap the specified window, and β more importantly β you can capture menus or other popups that are independent windows but appear over the specified window. this one lowkey eats. π-silentβ operate silently, i.e. don't ring any bells before and after dumping the window. peace and quiet, bestie. π
ngl, quick vibe check: the -silent option is listed here in OPTIONS but it doesn't show up in the SYNOPSIS up there. just saying. π
π¦ ENVIRONMENT π¦
DISPLAYβ used to get the default host and display number.
π SEE ALSO π
xwd(1), xwud(1), xpr(1), X(1), ppm(5).
π ORIGINAL AUTHORS π
- Tony Della Fera, Digital Equipment Corp., MIT Project Athena
- William F. Wyatt, Smithsonian Astrophysical Observatory
Xwintoppm is an tiny modification to Xwd program which is distributed with X11 kit. (yes, "an tiny", we're keeping it exactly as written, no cap π)
β MODIFICATIONS β
- Jun-ichiro itojun Itoh, WIDE Project
okay that's the whole page, you ate that bestie π«Ά this was X Version 11, Release 6.3, and the page itself is dated XWD(1) β love that for us. mwah πβ¨
π¦ where this page comes from
- debian trixie: mgp 1.13a+upstream20090219-12+b1
- ubuntu noble: mgp 1.13a+upstream20090219-12build2
- ubuntu questing: mgp 1.13a+upstream20090219-12build3
- ubuntu resolute: mgp 1.13a+upstream20090219-14
- ubuntu stonking: mgp 1.13a+upstream20090219-14
- Copyright (c) 1988, 1994 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms