ref(tmux)

This commit is contained in:
TheK4n 2023-11-27 14:12:21 +03:00
parent d35ecd5505
commit c6bc8ed68d

View File

@ -6,5 +6,5 @@ fi
if systemctl -q is-active graphical.target && [[ $(tty) = "/dev/tty1" ]] && [[ -z $DISPLAY ]] && [[ $XDG_VTNR -eq 1 ]]; then
exec startx >> ~/.xlogs 2>&1
elif command -v tmux &>/dev/null && [[ $(tty) = "/dev/tty2" ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
exec tmux
exec tmux new-session
fi