Automatically start X
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user