From e20761ce2cbce8d45bfa128d39ebc615b3e36f4f Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <55825613+luevano@users.noreply.github.com> Date: Tue, 8 Dec 2020 02:07:43 -0700 Subject: Fix config when not using DM and tidy up things --- .config/x11/xinitrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.config/x11/xinitrc') 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 -- cgit v1.2.3-54-g00ecf