I’m searching for someone with intermediate or advanced knowledge level working with cups printer daemon.
Scenario:
My goal is to let cups or some kinda virtual printer running on cups decide whether use my color ink printer or my grayscale laser printer.
I thought about achieving this, by either getting some information from the client (like document or photo setting for the virtual printer) or by letting a script go over the document and decide if it is necessary to use a color printer or grayscale.
Create your virtual printer, and when it comes time to select the driver, either say you have a sysV interface script and upload the following, or leave it at RAW (no driver) and drop the following script into /etc/cups/interfaces/ with the exact name of the printer, then restart cups.