summaryrefslogtreecommitdiff
path: root/.config/x11/xinitrc
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-08 02:07:43 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-08 02:07:43 -0700
commite20761ce2cbce8d45bfa128d39ebc615b3e36f4f (patch)
tree794948554e615bdd553679feb9a91ad3a0b63c66 /.config/x11/xinitrc
parent3e5f9ac0f99596b81c16e06405ff97417bd759fb (diff)
Fix config when not using DM and tidy up things
Diffstat (limited to '.config/x11/xinitrc')
-rw-r--r--.config/x11/xinitrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc
index 0c6736f..2df7747 100644
--- a/.config/x11/xinitrc
+++ b/.config/x11/xinitrc
@@ -4,4 +4,8 @@
# but since display managers use ~/.xprofile instead,
# .xprofile is sourced to be compatible with both.
-[ -f $HOME/.xprofile ] && . $HOME/.xprofile
+if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then
+ . "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile"
+else
+ . "$HOME/.xprofile"
+fi