XDPR(1)
XDPR(1) β¨
okay so bestie, imagine this: you've got a whole entire window on your X display and you want it on paper. like, physical paper. wild concept, i know. that's literally what xdpr from X Version 11 is for and honestly it's giving "screenshot but make it 1997" and i'm obsessed.
SYNOPSIS πΈ
xdpr [filename] [-display host:display] [-Pprinter] [-device devtype]
[option...]
DESCRIPTION π
So here's the tea: xdpr is the main character that pulls together the commands xwd(1), xpr(1), and lpr(1) or lp(1) to dump an X window, process it for whatever printer type you need, and then print it out on the printer of your choice. it's literally the easiest way to get a printout of a window, no cap. and by default? it prints the largest possible representation of the window on the output page. slay.
The options for xdpr are the same as those for xwd(1), xpr(1), and lpr(1) or lp(1). The most commonly-used options are described right below; see the manual pages for those commands for the full detailed descriptions of the many options available. iykyk π¦
β¨ OPTIONS β¨
filenameβ Specifies a file containing a window dump (created byxwd) to be printed instead of selecting an X window. so you can just point it at a file and vibe.-Pprinterβ Specifies a printer to send the output to. If a printer name is not specified here,xdpr(really,lprorlp) will send your output to the printer specified by thePRINTERenvironment variable. π«Ά Be sure that the type of the printer matches the type specified with the-deviceoption though, okay? mismatch = not cute.-display host:display[.screen]β Normally,xdprgets the host and display number to use from the environment variableDISPLAY. One can, however, specify them explicitly; seeX(7). main character energy, choosing your own display.-device devtypeβ Specifies the device on which the file will be printed. Currently supported:ljetβ HP LaserJet series and other monochrome PCL devices such as ThinkJet, QuietJet, RuggedWriter, HP2560 series, and HP 2930 series printerspjetβ HP PaintJet (color mode)pjetxlβ HP PaintJet XL Color Graphics Printer (color mode)ppβ IBM PP3812psβ PostScript printer
The default is PostScript. π
And just so you know, -device lw (LaserWriter) is equivalent to -device ps and is provided only for backwards compatibility. vintage vibes only.
-helpβ This option displays the list of options known toxdpr. lifesaver fr fr.
Any other arguments will be passed to the xwd(1), xpr(1), and lpr(1) or lp(1) commands as appropriate for each.
π SEE ALSO π
xwd(1), xpr(1), lpr(1), lp(1), xwud(1), X(7)
π ENVIRONMENT π
DISPLAYβ which display to use by default.PRINTERβ which printer to use by default.
π AUTHORS π
- Paul Boutin, MIT Project Athena
- Michael R. Gretzinger, MIT Project Athena
- Jim Gettys, MIT Project Athena
and that's the whole thing bestie!! π this iconic little page is from xpr 1.2.1 and it's dated 2022-04-02 β go forth and print, and remember: match your -device to your printer or it's gonna be a whole mess. byeee π¦β¨
π¦ where this page comes from
- arch rolling: xorg-xpr 1.2.1-1 Β· MIT
- nixpkgs unstable: xpr 1.2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms