I'm trying to switch to xmonad and have this issue. Whenever I type startx, it only starts dwm.
Things I did;
I edited the ~/.xinitrc file to change the "exec dwm" line to "exec xmonad". Also I thought maybe this could be related to xmonad and tried to replace with bspwm but nothing changed.
Are you using X.Org or Wayland? Have you changed /etc/X11/xinit/xinitrc or any other relevant configuration file in your system? Link your initialization files (~/.bashrc and similar). Also link your entire ~/.xinitrc (use https://paste.artixlinux.org).
Related: https://wiki.archlinux.org/title/Xinit
I'm using xorg.
I solved the issue, seems like I had multiple xinitrc files. I removed the file and problem solved, thanks for help.