aboutsummaryrefslogtreecommitdiff
path: root/linux/home/.config/X11/.xprofile
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-08-30 19:22:59 +0200
committersrdusr <trevorgray@srdusr.com>2025-08-30 19:22:59 +0200
commit19120d4f9761c67d99ed1ce3da6084b83f5a49c9 (patch)
treef234cad1bdad88114a63c9702144da487024967a /linux/home/.config/X11/.xprofile
parent5928998af5404ae2be84c6cecc10ebf84bd3f3ed (diff)
downloaddotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.tar.gz
dotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.zip
Linux-specific dotfiles
Diffstat (limited to 'linux/home/.config/X11/.xprofile')
-rw-r--r--linux/home/.config/X11/.xprofile24
1 files changed, 24 insertions, 0 deletions
diff --git a/linux/home/.config/X11/.xprofile b/linux/home/.config/X11/.xprofile
new file mode 100644
index 0000000..bc2e5f8
--- /dev/null
+++ b/linux/home/.config/X11/.xprofile
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# Xresources
+[[ -f ~/.config/X11/.Xresources ]] && xrdb -merge ~/.config/X11/.Xresources
+
+#Xset
+xset r rate 150 50
+#xset r rate 290 70
+
+# 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