# # ~/.bash_profile # [[ -f ~/.bashrc ]] && . ~/.bashrc # if [ -z "$DISPLAY" -a $XDG_VTNR -eq 1 ]; then #date --iso-8601="seconds" # exec startx -- -keeptty >> ~/.xorg.log 2>&1 # fi if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec sway #exec sway -d 2> ~/sway.log fi # if [[ -z $DISPLAY && $(tty) == /dev/tty1 && $XDG_SESSION_TYPE == tty ]]; then # XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session # fi