From 0f74d83e33acc854d07d2bd6b297f9c13f3509b2 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Tue, 18 Feb 2020 14:16:20 +0000 Subject: [PATCH] Autstart X at login --- .bash_profile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .bash_profile diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..168b1fc --- /dev/null +++ b/.bash_profile @@ -0,0 +1,10 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc + +if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then + exec startx +fi +