if [ -z "$DISPLAY" ] && [ $(tty) = /dev/tty1 ]; then while true do startx -- sleep 5 done fi