1 2 3 4 5 6 7 8
# ~/.bash_profile # [[ -f ~/.bashrc ]] && . ~/.bashrc if [[ -z "${DISPLAY}" ]] && [[ "${XDG_VTNR}" -eq 1 ]]; then exec startx fi