From 946f2c4d1e87570d65f8246949eadec788c38ff2 Mon Sep 17 00:00:00 2001 From: appeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com> Date: Wed, 20 Jul 2022 19:34:37 +0200 Subject: [PATCH] Restore startx command on boot (#1147) --- .config/shell/profile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/shell/profile b/.config/shell/profile index 62d5e79..65a7ff3 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: