XWD(1)

πŸ“¦ version 1.13a, in fedora 43, fedora 44

πŸ‘‘ 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. πŸ’§

  • -display display β€” lets you specify the server to connect to; see X(1). πŸ’…
  • -help β€” prints out the Usage: 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. βœ‚οΈ
  • -out file β€” 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 selects XY format dumping instead of the default Z format. no cap.
  • -add value β€” 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.
  • -id id β€” 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. 🎯
  • -name name β€” indicates the window with the specified WM_NAME property 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 the GetImage request 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