summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: