diff --git a/.bash_profile b/.bash_profile index db95f81..7a8fa18 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,5 +1,5 @@ [[ -f ~/.bashrc ]] && . ~/.bashrc -if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then - exec startx +if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then + exec startx fi