Make X launch work when logging in via any tty

This commit is contained in:
The Magician 2024-07-30 16:08:09 +01:00
parent 67a54b9297
commit dc4b08288c
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ md() {
} }
# Automatically run X if this is a login tty # Automatically run X if this is a login tty
[[ "$(tty)" == "/dev/tty1" ]] && ! pgrep -x Xorg >/dev/null && startx [[ "$(tty)" == /dev/tty* ]] && ! pgrep -x Xorg >/dev/null && startx
# Automatically run tmux if we aren't already in a session and there's no matching session already running # Automatically run tmux if we aren't already in a session and there's no matching session already running
if [[ -z "$TMUX" ]] && ! tmux list-sessions 2>/dev/null | grep --quiet "$HOSTNAME"; then if [[ -z "$TMUX" ]] && ! tmux list-sessions 2>/dev/null | grep --quiet "$HOSTNAME"; then