I use startx to start X which will evaluate my .xinitrc. In my .xinitrc I start my window manager using /usr/bin/mywm. No
startx
.xinitrc
/usr/bin/mywm
Maybe this seems ugly, but why not just run cat and let it wait for input forever?
cat