diff options
| author | krolyxon <krolyxon@tutanota.com> | 2022-07-31 13:24:13 +0530 |
|---|---|---|
| committer | krolyxon <krolyxon@tutanota.com> | 2022-07-31 13:24:13 +0530 |
| commit | c4219833b4752bb0ad027742e8beb5a6518960e8 (patch) | |
| tree | 563ca945086f25eadae1588f5b0612536b0f5aa7 /.config/shell/profile | |
| parent | b7ee6e4fbb698326eb3857dcee8a3d6c177e4a79 (diff) | |
.xinitrc change
Diffstat (limited to '.config/shell/profile')
| -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" |
