mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-27 05:34:35 +00:00
Start Xorg from profile in tty1
This commit is contained in:
parent
a6161d402a
commit
a385f09627
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
.config/x11/xinitrc
|
|
Loading…
Reference in a new issue