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 | |
| parent | b7ee6e4fbb698326eb3857dcee8a3d6c177e4a79 (diff) | |
.xinitrc change
| -rw-r--r-- | .config/shell/profile | 7 | ||||
| l--------- | .xinitrc | 1 |
2 files changed, 2 insertions, 6 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" diff --git a/.xinitrc b/.xinitrc deleted file mode 120000 index 518bb5d..0000000 --- a/.xinitrc +++ /dev/null @@ -1 +0,0 @@ -.config/x11/xinitrc
\ No newline at end of file |
