mirror of
https://github.com/rydesun/dotfiles.git
synced 2025-12-26 14:44:58 +08:00
better autostart
This commit is contained in:
parent
0aeb174c60
commit
3f3b15f401
2 changed files with 3 additions and 2 deletions
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /usr/bin/X -nolisten tcp "$@"
|
||||
exec /usr/bin/Xorg -nolisten tcp -nolisten local -keeptty "$@" vt$XDG_VTNR
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# Autostart X
|
||||
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
||||
xinit -- vt$XDG_VTNR
|
||||
xinit
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue