wayland work

This commit is contained in:
ackman678
2019-12-13 14:00:23 -08:00
parent 8b8919aa89
commit a3d252137d
11 changed files with 772 additions and 16 deletions

View File

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