From 10bed619fa5f5c566487413dd716d4f1cc60040f Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 23 Sep 2024 17:12:07 +0100 Subject: (Shell/zprofile)+if TTY is /dev/tty1 then startx if not already open --- Shell/.zprofile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Shell/.zprofile b/Shell/.zprofile index 4304bdb..fe91285 100644 --- a/Shell/.zprofile +++ b/Shell/.zprofile @@ -23,10 +23,13 @@ export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket" # Setup debuginfod sh /etc/profile.d/debuginfod.sh -# Import path to systemd +# Import useful variables to systemd systemctl --user import-environment PATH SSH_AUTH_SOCK # Run some programs echo "Welcome to..." figlet "Arch Linux" /usr/bin/pfetch + +# Start XServer if on TTY1 and it is not already active. +[[ $TTY == "/dev/tty1" ]] && (pgrep -i "startx" || exec startx) -- cgit v1.2.3-13-gbd6f