5 lines
156 B
Bash
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
|