From ccb6aa6a8dde6ba54151a2a54fcde1817ee577de Mon Sep 17 00:00:00 2001 From: TheK4n Date: Tue, 31 Jan 2023 23:33:06 +0300 Subject: [PATCH] mv zlogin to zprofile --- light/zlogin | 1 - light/zprofile | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) delete mode 100644 light/zlogin create mode 100644 light/zprofile diff --git a/light/zlogin b/light/zlogin deleted file mode 100644 index e3c35eb..0000000 --- a/light/zlogin +++ /dev/null @@ -1 +0,0 @@ -[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx >> ~/.xlogs 2>&1 diff --git a/light/zprofile b/light/zprofile new file mode 100644 index 0000000..027fea9 --- /dev/null +++ b/light/zprofile @@ -0,0 +1,4 @@ + +if systemctl -q is-active graphical.target && [[ $(tty) = "/dev/tty1" ]] && [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then + exec startx >> ~/.xlogs 2>&1 +fi