I am running Arch-linux and Openbox. Arch-linux has been fully updated today.
I can power on and off my printer, a HP LaserJet 2200, using a shell script & keyboard shortcuts associated with the script.
I need to intercept any system command to print to this print queue and use it to trigger the shell script to turn the printer on, automatically.
How can I detect any print job sent to a specific print queue and then run the shell script at this time? (I have 2 or three printers so it has to be able to detect the specific print queue to turn on the right printer)