X: move startup routines from xinitrc