diff --git a/.zprofile b/.zprofile index 322d2ce..602fa41 100644 --- a/.zprofile +++ b/.zprofile @@ -1 +1,6 @@ emulate sh -c '. ~/.profile' + +# Start X automatically +if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then + exec startx +fi diff --git a/.zshrc b/.zshrc index 1062a2d..cb51680 100644 --- a/.zshrc +++ b/.zshrc @@ -159,11 +159,6 @@ if [ ! $SSH_AGENT_PID ]; then fi; fi; -# Start X automatically -if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then - exec startx -fi - # Launch nvm possibilities (for javascript environment) case $HOST in lueur | baloo | sam)