From dc4b08288cd9d257ebecc3c5fda944f8adc9865c Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 30 Jul 2024 16:08:09 +0100 Subject: [PATCH] Make X launch work when logging in via any tty --- bash/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/.bashrc b/bash/.bashrc index 69cc228..cd9e326 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -73,7 +73,7 @@ md() { } # 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 if [[ -z "$TMUX" ]] && ! tmux list-sessions 2>/dev/null | grep --quiet "$HOSTNAME"; then