aboutsummaryrefslogtreecommitdiff
path: root/.config/X11/.xprofile
blob: b05a5034edca05e4cededba77d5615983e033372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# Xresources
[[ -f ~/.config/X11/.Xresources ]] && xrdb -merge ~/.config/X11/.Xresources

# Xbindkeys
xbindkeys -f "$XDG_CONFIG_HOME"/X11/xbindkeysrc

# XKB
setxkbmap -print | xkbcomp -I"$HOME"/.config/xkb - "$DISPLAY"

#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