summaryrefslogtreecommitdiffstats
path: root/.config/shell
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-07-21 14:34:02 -0400
committerLuke Smith <luke@lukesmith.xyz>2022-07-21 14:34:02 -0400
commit4d597f945be529c5807a42e0469d86933f6ec9a4 (patch)
treed6ee13d004ec5dad1c8a90ac2976f8b437f7c170 /.config/shell
parent65c7da88ed1d512fcb926d8c69ce57d295f1d1b4 (diff)
parent946f2c4d1e87570d65f8246949eadec788c38ff2 (diff)
downloadeibhear-4d597f945be529c5807a42e0469d86933f6ec9a4.tar.gz
eibhear-4d597f945be529c5807a42e0469d86933f6ec9a4.tar.zst
eibhear-4d597f945be529c5807a42e0469d86933f6ec9a4.zip
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.config/shell')
-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: