From 318ceeaa3be62913c22c7d8b91549fc5db55dbdc Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Sun, 9 Jan 2022 16:41:39 +0100 Subject: [PATCH] Remove startx Signed-off-by: Severin Kaderli --- system/.config/zsh/.zprofile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/system/.config/zsh/.zprofile b/system/.config/zsh/.zprofile index 3e5fa2e..d819360 100644 --- a/system/.config/zsh/.zprofile +++ b/system/.config/zsh/.zprofile @@ -24,16 +24,6 @@ crontab "${XDG_CONFIG_HOME}/cron/crontab" # Load env variables export "$(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)" -# If we are on tty1 we start the x-server if [ "$(tty)" = "/dev/tty1" ]; then - startx "${XDG_CONFIG_HOME}/X11/xinitrc" -- -keeptty > "${XDG_LOG_HOME}/xorg.log" 2>&1 && exit -fi - -# If we are on tty2 we start the x-server using nvidia-xrun -if [ "$(tty)" = "/dev/tty2" ]; then - nvidia-xrun > "${XDG_LOG_HOME}/nvidia-xorg.log" 2>&1 && exit && exit -fi - -if [ "$(tty)" = "/dev/tty3" ]; then - WLR_DRM_DEVICES=/dev/dri/card0 sway + sway > "${XDG_LOG_HOME}/sway.log" 2>&1 && exit fi