Automatically start X

master
Hektor Misplon 2021-11-28 17:39:26 +01:00
parent eab043862e
commit 8c82d5334d
1 changed files with 2 additions and 2 deletions

View File

@ -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