summaryrefslogtreecommitdiff
path: root/dotfiles/system/.profile
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/system/.profile')
-rw-r--r--dotfiles/system/.profile5
1 files changed, 5 insertions, 0 deletions
diff --git a/dotfiles/system/.profile b/dotfiles/system/.profile
index 0a67605..088c2b4 100644
--- a/dotfiles/system/.profile
+++ b/dotfiles/system/.profile
@@ -108,3 +108,8 @@ if [ -d "$PROFILE_D" ]; then
source "$file"
done
fi
+
+# launch x automatically
+if [ -z "$DISPLAY" ] && [ "$(tty)" = /dev/tty1 ]; then
+ startx
+fi