https://wiki.archlinux.org/index.php/xinitrc

1
2
3
4
5
6
7
vim  ~/.xinitrc
exec startxfce4

vim .bashrc
# change the last line to
# add as last line in .bashrc
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx