How to load pactl module on boot

Hi, iam using soundblaster zx for sound system,
and using speaker 5.1 with 3 jack of analog input , found out the speaker channel was wrong, so i do search on the internet to find how is it possible to swap the channel i found couple of solution 1 is using pipewire 2 is using pactl 3 is using wireplumber, so pipewire i fail to configure its doesnt change,
with pactl its working .
so now how do i apply on boot ?

ow here i share the script in case anyone having same issue like me

pactl load-module module-remap-sink sink_name=SBSwap2 master=alsa_output.pci-0000_05_00.0.analog-surround-51 channels=6 channel_map=front-left,front-right,front-center,lfe,rear-left,rear-right, master_channel_map=front-left,front-right,rear-left,rear-right,lfe,front-center remix=no

If that pactl command is working and you want to stick with it there are several options to execute it after login. The most “clean” to me would be:

  1. Write a vanilla systemd user service that executes that pactl and bind it to pipewire.
  2. Use pipewire’s build in facilities to execute pactl commands. This is an example for a different load-module command, but it provides the blueprint.