From b3b7209ffab39031b6d40336e5ca1dcfcab7ea3b Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Sun, 24 Dec 2023 02:38:19 -0500 Subject: [PATCH] Test tty instead of systemd env var before starting river --- dot_bash_profile.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_bash_profile.tmpl b/dot_bash_profile.tmpl index 78e18ee..2e686c6 100644 --- a/dot_bash_profile.tmpl +++ b/dot_bash_profile.tmpl @@ -75,4 +75,4 @@ export XAUTHORITY="${XDG_RUNTIME_DIR}/Xauthority" [[ -f ~/.bashrc ]] && . ~/.bashrc # start river -[[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]] && exec dbus-run-session river +[[ -z $DISPLAY && $(tty) = "/dev/tty1" ]] && exec dbus-run-session river