Here is a circuit that SHOULD work for what you need.
Verify that the x3-5 pin is 12v on ignition which it looks like it should be.
You will need a 12v 5a dpdt relay. They sell them on Amazon for like 8 bucks with the base (you can use it if you want or solder to the relay contacts)
Make sure you connect a diode across the coil of the relay to prevent ringing. The cathode (bar side) needs to be on the ignition side of the coil.
Operation:
Then the truck is driving day ot night, the parking lights are on (drl) this is on x5-22
When the truck is started the relay is de-energized and the normally closed contact bridges the drl to the X5-10 FOGLIGHT control (protected by the diode in x5-22
The fog lights will be on if the truck is driving, or the lights are on.
If you press the factory fog light switch (logic low at X1-15), the relay will close and stay latched due the normally opened contact on the 2nd circuit pulling the wiper to ground. This will isolate the diode between X5-22 and X5-10.
The relay will stay latched as long as there is power to the relay via X3-5 (verify that is a good ignition power source)
The fog lights will now function as factory fog lights. Not allowable to be in high beam and turned on and off by the switch.
When the ignition is reset, so is the relay. The truck will go back to auto foglight mode.
I take no responsibility for any actions that arise from you modifying your truck including blowing your BCM.
DO THESE MODS AT YOUR OWN RISK!!!
Sent from my SM-N950U using Tapatalk