Custom Controls, Confirmation only when printing?

I've added system buttons to config.yaml to turn my printers on/off.

There's actually more commands but this shows what's needed for the question.

system:
actions:

  • action: printer power on
    command: sudo /usr/bin/hub-ctrl -h 1 -P 2 -p 1
    name: Printer On
  • action: printer power off
    command: sudo /usr/bin/hub-ctrl -h 1 -P 2 -p 0
    confirm: You are about to power off the printer.
    name: Printer Off

I'm using the confirm so I don't accidentally shut the printer down while it's printing. Is it possible to create a custom command that only gives the confirmation dialog if the printer is currently printing?

Not that I'm aware of.