1 2 3 4 5
if [[ -z $DISPLAY ]] && (( $EUID != 0 )) { [[ ${TTY/tty} != $TTY ]] && (( ${TTY:8:1} <= 3 )) && startx 1>/tmp/xsession-errors 2>&1 & }