From 7249faaa0b4be833ebe6f971b2aeabea531cbf28 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 29 May 2025 23:52:46 -0500 Subject: launch X after login; add header to the .xinitrc shell script --- dotfiles/system/.profile | 5 +++++ dotfiles/system/.xinitrc | 1 + 2 files changed, 6 insertions(+) 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 -- cgit v1.2.3