dotfiles/home/zprofile
2023-03-05 00:09:56 +03:00

5 lines
156 B
Bash

if systemctl -q is-active graphical.target && [[ $(tty) = "/dev/tty1" ]] && [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx >> ~/.xlogs 2>&1
fi