3f306ffb86644709120aa64d0d92a5f988697543

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Improve sway startup and add unicode support for tty

Diff

 1diff --git a/dot_zshrc b/dot_zshrc
 2index 13894a15c5636361a5b72e1aefbb0febdd469ff8..036241c445775e337d95683acb59f91dcfe2f48a 100644
 3--- a/dot_zshrc
 4+++ b/dot_zshrc
 5@@ -63,10 +63,13 @@ if which pyenv &> /dev/null; then
 6 	eval "$(pyenv init -)"
 7 fi
 8 
 9-# sway on tty1
10 if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [[ $(tty) = /dev/tty1 ]]; then
11-	date=$(date +%Y-%m-%d-%H:%M:%S)
12+    # sway on tty1
13 	exec sway
14+elif [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]]; then
15+    # startx on tty2
16+    exec startx -- vt1
17+elif [[ $(tty) =~ "/dev/tty[0-9]" ]]; then
18+    # Enable unicode characters in the tty
19+    unicode_start
20 fi
21-# startx on tty2
22-[[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]] && exec startx -- vt1