From b84721b0dae4377da889c8e3061bd06aec068807 Mon Sep 17 00:00:00 2001 From: appeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com> Date: Wed, 20 Jul 2022 09:13:46 +0200 Subject: [PATCH] Restore startx command on boot --- .config/shell/profile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/shell/profile b/.config/shell/profile index 62d5e790..65a7ff31 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -140,6 +140,9 @@ ex=🎯:\ *.java=♨:\ " +# Start graphical server on user's current tty if not already running. +[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC" + [ ! -f ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ] && setsid shortcuts >/dev/null 2>&1 # Switch escape and caps if tty and no passwd required: