summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorappeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com>2022-07-20 19:34:37 +0200
committerGitHub <noreply@github.com>2022-07-20 17:34:37 +0000
commit946f2c4d1e87570d65f8246949eadec788c38ff2 (patch)
treeb2fa4f896ff66c2cce3e88a900698ea345d1727a
parent8f2810ac20c942f784d0cae1d11812d6ce51c308 (diff)
downloadeibhear-946f2c4d1e87570d65f8246949eadec788c38ff2.tar.gz
eibhear-946f2c4d1e87570d65f8246949eadec788c38ff2.tar.zst
eibhear-946f2c4d1e87570d65f8246949eadec788c38ff2.zip
Restore startx command on boot (#1147)
-rw-r--r--.config/shell/profile3
1 files changed, 3 insertions, 0 deletions
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: