From 8c82d5334d3c3c879d40a820a64551a85d6a114c Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 28 Nov 2021 17:39:26 +0100 Subject: [PATCH] Automatically start X --- .bash_profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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