diff options
| author | srdusr <trevorgray@srdusr.com> | 2022-11-16 16:21:52 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2022-11-16 16:21:52 +0200 |
| commit | a4985f2015b7d467e1c342015ea04bb454dc22f4 (patch) | |
| tree | f9b31284527c17e172c5382e1c832eac02c932fc | |
| parent | 830c4372d1509f5cabd45ecd9255780bc0d37504 (diff) | |
| download | dotfiles-a4985f2015b7d467e1c342015ea04bb454dc22f4.tar.gz dotfiles-a4985f2015b7d467e1c342015ea04bb454dc22f4.zip | |
Added .xprofile
| -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 |
