what's wrong with this .xinitrc

Couple of things to note here with the above code snippet:

  1. “sleep3,&&” ? I hope that’s a typo on your part – the comma here is silly.
  2. The real reason why the above fails is due to “exec fvwm” – exec, being a shell-builtin will REPLACE the running instance of the shell (in this case) with fvwm – meaning that it’s only when FVWM dies, will your sleep 3 and fvwm-root command try to run – of course, it’s not going to do that due to your typo, but even if it did work, can you see why it’s pointless?

Fail. You should be using fvwm-root in your StartFunction anyway – without the silly need for hsetroot here.

– Thomas Adam