Switch on Navigation Light when Armed

Hi all, I installed in my drone (PX4 1.9) the navigation led (red left, green right and white).

Is there a way to activate the Navigation Led as soon as the Safety Arm switch is armed?

Is there a way to drive a switch as soon as the status is ARMED?

Ale