From d77e34f240d6e0abaafd027d700f84721a2909af Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 16 Oct 2021 16:39:31 +0000 Subject: autostart x11 --- .bash_profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index c146385..3ce6850 100644 --- a/.bash_profile +++ b/.bash_profile @@ -52,5 +52,9 @@ function killmerged() { export PERLDOC='-MPod::Text::Color::Delight' -fortune +if [[ -z "$DISPLAY" ]]; then + TTY=$(tty) + [[ "${TTY/tty}" != "$TTY" && "${TTY:8:1}" = "8" ]] && + exec startx >~/xsession-errors 2>&1 +fi -- cgit v1.2.3