aboutsummaryrefslogtreecommitdiff
path: root/.config/X11/.xprofile
diff options
context:
space:
mode:
Diffstat (limited to '.config/X11/.xprofile')
-rw-r--r--.config/X11/.xprofile23
1 files changed, 23 insertions, 0 deletions
diff --git a/.config/X11/.xprofile b/.config/X11/.xprofile
new file mode 100644
index 0000000..939b7e1
--- /dev/null
+++ b/.config/X11/.xprofile
@@ -0,0 +1,23 @@
+#!/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"
+# pgrep startxfce4 || startx "$XDG_CONFIG_HOME/X11/.xinitrc"
+fi