Start Xorg from profile in tty1

This commit is contained in:
ItsDrike 2021-07-14 19:12:51 +02:00
parent a6161d402a
commit a385f09627
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
2 changed files with 9 additions and 1 deletions

View file

@ -15,6 +15,8 @@ export XDG_DATA_HOME="$HOME/.local/share"
export XDG_RUNTIME_DIR="/run/user/$UID" export XDG_RUNTIME_DIR="/run/user/$UID"
# Pre-Application XDG settings # Pre-Application XDG settings
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs.
export LESSHISTFILE="-" export LESSHISTFILE="-"
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc" export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc" export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
@ -51,3 +53,10 @@ command -v bat > /dev/null && export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export PIPENV_VENV_IN_PROJECT=1 # Force pipenv to create new environments within projects ./.venv export PIPENV_VENV_IN_PROJECT=1 # Force pipenv to create new environments within projects ./.venv
#export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme. #export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
# Start graphical session, if startx is aviable
if [ "$(tty)" = "/dev/tty1" ]; then
if command -v startx > /dev/null; then
! pidof -s Xorg > /dev/null 2>&1 && exec startx "$XINITRC"
fi
fi

View file

@ -1 +0,0 @@
.config/x11/xinitrc