blob: d75092e68ea31d439b2f4dd205bb1d131d485b36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
|