GravelPieceOfSword, (edited )

Mission Accomplished! My printer driver now has a MirrorPrint Option, and selecting it enables Mirror Printing. For convenience (since I don’t see a client side option to flip mirror printing), I have a doppleganger of my regular printer, and I named it MirrorTest - screenshot below. When I need a mirror print, I just send it to the mirror printer.

https://lemmy.ca/pictrs/image/4be9b08a-01a2-4d67-871a-2caa391bff6d.png

Actual Changes

Here’s the relevant excerpt (added) in /etc/cups/ppd/MirrorTest.ppd (I added this UI option right below the Toner option). Excerpt adds a MirrorPrint Toggle (boolean) to the printer defaults setup. When enabled - the printer will print in mirror mode.


<span style="color:#323232;">*%=== Mirror Printing ================================
</span><span style="color:#323232;">*OpenGroup: General
</span><span style="color:#323232;">*OpenUI *MirrorPrint/Mirror Print: Boolean
</span><span style="color:#323232;">*OrderDependency: 110 AnySetup *MirrorPrint
</span><span style="color:#323232;">*DefaultMirrorPrint: True
</span><span style="color:#323232;">*MirrorPrint True/MirrorPrint: "&lt;>setpagedevice"
</span><span style="color:#323232;">*MirrorPrint False/Normal: ""
</span><span style="color:#323232;">*CloseUI: *MirrorPrint
</span>

For further convenience (making sure that a new printer installation didn’t mess up my custom changes, I also updated the relevant ppd file in /usr/share/cups/model/. Whenever you add a new printer - CUPS will use the corresponding model ppd as a base, and it will apply any settings changes from configuring default to the copied ppd file in /etc/cups/ppd/your_printer.ppd.

Hope this helps if someone else is also looking to do something similar!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #