Reduced .xinit to test Fvwm in Xnest.
#!/bin/bash
# To test fvwm. To run with Xnest use:
#
# $ xinit ~/.fvwm/xinit -- `command -v Xnest` :1
#
# or:
#
# $ xinit ~/.fvwm/xinit -- `command -v Xephyr` :1
[[ -f ~/.env ]] && . ~/.env || :
[[ -f ~/.env.local ]] && . ~/.env.local || :
[[ -f ~/.Xdefaults ]] && xrdb -merge ~/.Xdefaults || :
xsetroot -mod 2 2 -fg gray70 -bg gray60
fvwm -cmd "Module FvwmM4 -m4-prefix -m4-prefix-defines $HOME/.fvwm/config" &
exec xterm -geometry 80x42 -name "xinitrc" -e bash -i