diff options
Diffstat (limited to '.config')
| -rw-r--r-- | .config/shell/profile | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/.config/shell/profile b/.config/shell/profile index f0172c9..0933809 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -198,8 +198,5 @@ ex=:\ *.nix=:\ " -# Starting X -if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then - exec startx -fi - +# Start graphical server on user's current tty if not already running. +[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC" |
