XWD(1)
π XWD(1) β bestie edition π
okay so this is the XWD(1) page from the General Commands Manual, and we're gonna go through it together, no skimming, no skipping, because every single line here actually matters. grab a snack. π
β¨ NAME β¨
xwintoppm β dump an image of an X window πΈ
like, it grabs a picture of a window. that's the whole job. and it ate. periodt.
πΈ SYNOPSIS πΈ
xwintoppm [-debug] [-help] [-nobdrs] [-out file] [-xy] [-frame] [-add
value] [-root | -id id | -name name ] [-icmap] [-screen] [-display
display]
so that's the whole vibe check right there β all the flags, laid out. notice how -root, -id id and -name name are like, mutually exclusive girlies (that's what the | means, iykyk). pick one. π«Ά
π¦ DESCRIPTION π¦
Xwintoppm is an X Window System window dumping utility. lowkey iconic. what it does is let X users store window images in ppm(5) format. β¨
and then?? bestie, then that file can be read by all sorts of other X utilities for redisplay, printing, editing, formatting, archiving, image processing, etc. it's giving versatile. it's giving main character file format. π
π OPTIONS π
okay this is the big section, hydrate first. π§
-displaydisplay β lets you specify the server to connect to; seeX(1). π-helpβ prints out theUsage:command syntax summary. that's it, that's the flag. a little "here's how u use me" moment. π-nobdrsβ 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 and you don't want the crusty border ruining the aesthetic. βοΈ-outfile β lets you explicitly name the output file right there on the command line. the default is to output to standard out. π«Ά-xyβ color displays only, bestie! it selectsXYformat dumping instead of the defaultZformat. no cap.-addvalue β specifies a signed value to be added to every pixel. yes, every pixel. signed, so it can be negative. π-frameβ indicates that the window manager frame should be included when you're manually selecting a window. give the window its little outfit. π-rootβ indicates the root window should be selected for the dump, without making the user pick a window with the pointer. zero clicking required, slay.-idid β indicates the window with the specified resource id should be selected for the dump, again without making the user select a window with the pointer. precision targeting. π―-namename β indicates the window with the specifiedWM_NAMEproperty should be selected for the dump, without requiring the user to select a window with the pointer. find her by name. πΈ-icmapβ normally the colormap of the chosen window is used to get the RGB values. this option forces the first installed colormap of the screen to be used instead. plot twist. π₯-screenβ indicates that theGetImagerequest used to obtain the image should be done on the root window, rather than directly on the specified window. the way this works is you can obtain 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 is the one for capturing dropdown menus and it's chef's kiss. π-silentβ operate silently, i.e. don't ring any bells before and after dumping the window. shhh. π€«
πΏ ENVIRONMENT πΏ
DISPLAYβ to get default host and display number. π
β SEE ALSO β
xwd(1), xwud(1), xpr(1), X(1), ppm(5).
go read those too, bestie, they're the friend group. π
π ORIGINAL AUTHORS π
- Tony Della Fera, Digital Equipment Corp., MIT Project Athena
- William F. Wyatt, Smithsonian Astrophysical Observatory
and, direct quote vibes: Xwintoppm is an tiny modification to Xwd program which is distributed with X11 kit. (yes, "an tiny". we're keeping it exactly as written, don't come for me, it's iconic. π)
π§ MODIFICATIONS π§
- Jun-ichiro itojun Itoh, WIDE Project
ok that's literally the whole page, nothing skipped, every flag accounted for, every name spelled right. you're welcome. π«Ά
and for the little sign-off moment: this is X Version 11, Release 6.3 β so like, take that in, date the whole thing, and go dump a window. bye bestie!! πβ¨ππ¦πΈπ
π¦ where this page comes from
- fedora 43: MagicPoint 1.13a-43.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: MagicPoint 1.13a-45.fc44 Β· LicenseRef-Callaway-BSD
- 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