Krolyxon
Commit c421983

Branches

Refs →

dotfiles-x11c421983

.xinitrc change

Author
krolyxon
Date
2022-07-31 13:24 +0530
Parent
b7ee6e4
Commit
c4219833b4752bb0ad027742e8beb5a6518960e8

+2 −6

2 files changed

  1. M .config/shell/profile +2 −5
  2. D .xinitrc +0 −1
M .config/shell/profile View
@@ -198,8 +198,5 @@ ex=:\
198198 *.nix=:\
199199 "
200200
201−# Starting X
202−if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
203− exec startx
204−fi
205−
201+# Start graphical server on user's current tty if not already running.
202+[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"
D .xinitrc View
@@ -1 +0,0 @@
1−.config/x11/xinitrc