Cygwin: making OpenBox start upon typing ‘startx’

To make OpenBox start when you type startx in Cygwin, in Cygwin (one-time) type:

echo "exec openbox-session" > ~/.xinitrc

OpenBox is a graphical desktop environment for Linux/Cygwin

reference