XDPR(1)

πŸ“¦
version 1.2.1 Β· 2 versions
, in arch rolling, nixpkgs unstable

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 by xwd) 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, lpr or lp) will send your output to the printer specified by the PRINTER environment variable. 🫢 Be sure that the type of the printer matches the type specified with the -device option though, okay? mismatch = not cute.
  • -display host:display[.screen] β€” Normally, xdpr gets the host and display number to use from the environment variable DISPLAY. One can, however, specify them explicitly; see X(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 printers
    • pjet β€” HP PaintJet (color mode)
    • pjetxl β€” HP PaintJet XL Color Graphics Printer (color mode)
    • pp β€” IBM PP3812
    • ps β€” 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 to xdpr. 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