diff options
| author | appeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com> | 2022-07-20 19:34:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-20 17:34:37 +0000 |
| commit | 946f2c4d1e87570d65f8246949eadec788c38ff2 (patch) | |
| tree | b2fa4f896ff66c2cce3e88a900698ea345d1727a /.config/shell/profile | |
| parent | 8f2810ac20c942f784d0cae1d11812d6ce51c308 (diff) | |
| download | eibhear-946f2c4d1e87570d65f8246949eadec788c38ff2.tar.gz eibhear-946f2c4d1e87570d65f8246949eadec788c38ff2.tar.zst eibhear-946f2c4d1e87570d65f8246949eadec788c38ff2.zip | |
Restore startx command on boot (#1147)
Diffstat (limited to '.config/shell/profile')
| -rw-r--r-- | .config/shell/profile | 3 |
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: |
