XWD(1)
๐
XWD(1) โ the girlies' guide to xwd
okay so real talk, the full name of this page is XWD(1) from the General Commands Manual, and the command itself is xwd. it dumps an image of an X window. that's the whole vibe. let's get into it bestie ๐ซถ
โจ NAME โจ
xwd โ dump an image of an X window
๐ธ SYNOPSIS ๐ธ
xwd [-debug] [-help] [-nobdrs] [-out file] [-xy] [-frame] [-add value]
[-root | -id wdid | -name wdname ] [-icmap] [-screen] [-silent]
[-display host:dpy] [-version]
๐ฆ DESCRIPTION ๐ฆ
so xwd is an X Window System window dumping utility. it lets X users store window images into a specially formatted dump file โจ and likeโฆ that file can then be read by a bunch of other X utilities for redisplay, printing, editing, formatting, archiving, image processing, etc. the range?? iconic.
the target window gets selected by clicking the pointer in the desired window. and here's the lil audio cue nobody asked about: the keyboard bell gets rung once at the beginning of the dump and twice when the dump is completed. it's giving notification system from 1987 and honestly? we respect it ๐
๐ OPTIONS ๐
-debugโ turns on debug mode. that's it, that's the whole thing ๐ฅ-d,-display host:dpyโ lets you pick which server to connect to. go readX(7)if you want the deets bestie ๐-helpโ prints out theUsage:command syntax summary. a lil cheat sheet, love that for us โจ-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 ๐ผ๏ธ-out fileโ you explicitly name the output file right there on the command line. the default (iykyk) is to output to standard out ๐ค-xyโ color displays only!! this one selectsXYformat dumping instead of the defaultZformat. pick your fighter ๐จ-add valueโ specifies a signed value to be added to every pixel. every. single. pixel. ๐-frameโ indicates the window manager frame should be included when you're manually selecting a window. frame included, no gatekeeping ๐ช-rootโ the root window gets selected for the dump, no pointer-clicking required. the whole desktop said "I'll go" ๐-id wdidโ selects the window with the specified resource id for the dump. again, no pointer selection needed ๐-name wdnameโ selects the window with the specified WM_NAME property for the dump. still no pointer action. she's efficient ๐-icmapโ normally the colormap of the chosen window is what's used to obtain RGB values. this option forces the first installed colormap of the screen to be used instead. plot twist ๐-screenโ indicates theGetImagerequest used to grab the image should happen on the root window instead of directly on the specified window. why do we care?? because this 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 still appear over the specified window. popup capture supremacy fr fr ๐ซถ-silentโ operate silently, meaning don't ring any bells before or after dumping the window. peace and quiet, we stan ๐คซ-versionโ saysxwdshould print its version info and then exit. bye bestie ๐
๐ ENVIRONMENT ๐
DISPLAYโ used to get the default host and display number.
๐ FILES ๐
XWDFile.hโ the X Window Dump File format definition file ๐
โญ SEE ALSO โญ
๐ AUTHORS ๐
- Tony Della Fera, Digital Equipment Corp., MIT Project Athena
- William F. Wyatt, Smithsonian Astrophysical Observatory
these two invented the vibe, no cap ๐
X Version 11 ยท xwd 1.0.9 โ okay that's the whole page bestie, go dump some windows and remember: the bells are part of the experience ๐๐โจ
๐ฆ where this page comes from
- alpine 3.24: xwd-doc 1.0.9-r2 ยท custom
- debian trixie: x11-apps 7.7+11+b1
- fedora 43: xwd 1.0.9-4.fc43 ยท MIT-open-group AND HPND-sell-variant
- fedora 44: xwd 1.0.9-5.fc44 ยท MIT-open-group AND HPND-sell-variant
- nixos 26.05: xwd 1.0.9
- opensuse-leap 16.0: xwd 1.0.9-bp160.1.12 ยท MIT
- opensuse-leap 16.0: xwd 1.0.9-bp160.1.12 ยท MIT
- opensuse-leap 16.0: xwd 1.0.9-bp160.1.12 ยท MIT
- opensuse-leap 16.0: xwd 1.0.9-bp160.1.12 ยท MIT
- ubuntu noble: x11-apps 7.7+11build3
- ubuntu questing: x11-apps 7.7+11build3
- ubuntu resolute: x11-apps 7.7+11build4
- ubuntu stonking: x11-apps 7.7+11build4
- Copyright 1988, 1994, 1998 The Open Group
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms