summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-05-29 23:52:46 -0500
committerCraig Jennings <c@cjennings.net>2025-05-29 23:52:46 -0500
commit7249faaa0b4be833ebe6f971b2aeabea531cbf28 (patch)
tree04e02260111e98a81a6da4025324b26cabfc198f
parent1c315bfa4f329811c44a3b1f8e7bd13fa373e9df (diff)
launch X after login; add header to the .xinitrc shell script
-rw-r--r--dotfiles/system/.profile5
-rwxr-xr-xdotfiles/system/.xinitrc1
2 files changed, 6 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
diff --git a/dotfiles/system/.xinitrc b/dotfiles/system/.xinitrc
index 09ca018..85833a5 100755
--- a/dotfiles/system/.xinitrc
+++ b/dotfiles/system/.xinitrc
@@ -1 +1,2 @@
+#!/bin/sh
startdwm