xprofile and xinit
See https://wiki.archlinux.org/title/xprofile .
and: https://wiki.archlinux.org/title/Xinit .
I use the LightDM display manager (leftover from GNOME), which sources ~/.xprofile.
Most display managers do this.
So in my case, I apply changes to ~/.xprofile.
Example of my current ~/.xprofile:
xbindkeys &
random_background.sh & disown
dwm_status.sh & disown
nm-applet & disown
If I'd run barebones Arch Linux, I'd manually call startx from a tty which then uses ~/.xinitrc instead.