Simplify xinit

This commit is contained in:
natemaia
2018-08-28 21:46:36 -07:00
parent 1c713f1bc5
commit 6f638e5aaa
3 changed files with 8 additions and 36 deletions

View File

@ -1,19 +1,5 @@
# .zprofile
# sourced by zsh when used as a login shell
# Uncomment the below example for multiple sessions
#
# using Ctrl-Alt-F2 will switch you to tty2, and i3 will be started
# using Ctrl-Alt-F1 will switch back to tty1 and openbox
#
# if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then
# exec startx ~/.xinitrc openbox
# elif [[ -z $DISPLAY && $XDG_VTNR -eq 2 ]]; then
# exec startx ~/.xinitrc i3
# fi
# automatically run startx when logging in on tty1
# comment this out if using the above example
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx -- vt1 &>/dev/null