diff options
| -rw-r--r-- | .xprofile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.xprofile b/.xprofile new file mode 100644 index 0000000..d75092e --- /dev/null +++ b/.xprofile @@ -0,0 +1,43 @@ +#!/bin/sh + +# profile file. Runs on login. Environmental variables are set here. + +# If you don't plan on reverting to bash, you can remove the link in ~/.profile +# to clean up. + +#If running bash +#if [ -n "$BASH_VERSION" ]; then +# # include .bashrc if it exists +# if [ -f "$HOME/.bashrc" ]; then +# . "$HOME/.bashrc" +# fi +#fi + +[[ -f ~/.config/zsh/.zshenv ]] && source ~/.config/zsh/.zshenv + + +# Xresources +[[ -f ~/.config/X11/.Xresources ]] && xrdb -merge ~/.config/X11/.Xresources + +# Adds `~/.local/bin` to $PATH +#export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local:$HOME/.local/bin:$HOME/scripts +#export PATH=$HOME/bin:/usr/local/bin:/sbin:/usr/sbin:$PATH +#unsetopt PROMPT_SP +#export XDG_CONFIG_HOME="$HOME/.config" +#export XDG_DATA_HOME="$HOME/.local/share" +#export XDG_CACHE_HOME="$HOME/.cache" + + +#export XAUTHORITY="$XDG_RUNTIME_DIR/.Xauthority" # This line will break some DMs. +export USERXSESSION="$XDG_CACHE_HOME/X11/xsession" +export USERXSESSIONRC="$XDG_CACHE_HOME/X11/xsessionrc" +export ALTUSERXSESSION="$XDG_CACHE_HOME/X11/Xsession" +export ERRFILE="$XDG_CACHE_HOME/X11/xsession-errors" + + +if [[ "$(tty)" = "/dev/tty1" ]]; then + pgrep bspwm || startx "$XDG_CONFIG_HOME/X11/.xinitrc" +fi +#if [[ "$(tty)" = "/dev/tty1" ]]; then +# pgrep startxfce4 || startx "$XDG_CONFIG_HOME/X11/.xinitrc" +#fi |
