(Shell/zprofile)+if TTY is /dev/tty1 then startx if not already open

This commit is contained in:
2024-09-23 17:12:07 +01:00
parent 9db6e01de6
commit 10bed619fa

View File

@@ -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)