# You don't like xdm, gdm, kdm, lightdm etc but do want autonomous
# startx when logging in on first "text mode" virtual terminal and
# automatic poweroff when quitting from X11? Just use other than first 
# virtual terminal to avoid :)
#
# As last line in e.g. ~/.bash_profile add

tt=$(tty); if [ ${tt:5} == tty1 ]; then startx; sudo poweroff; fi

# startx without startx?
#
# Seldom needed as xorg-xinit or xinit package *should* include startx
# script but good to know
#
#   xinit -- vt1 -keeptty
# 
# other special cases
#
#   startx -- -dpi value
#   startx -- -depth value
#   startx /usr/bin/openbox-session  # or similar, to override ~/.xinitrc
