Three known methods:

~/.wm_style - WDM
~/.dmrc - KDM
/etc/X11/xinitrc and ~/.xinitrc - startx
