summaryrefslogtreecommitdiff
path: root/.config/x11
diff options
context:
space:
mode:
Diffstat (limited to '.config/x11')
-rw-r--r--.config/x11/xinitrc6
-rw-r--r--.config/x11/xprofile15
2 files changed, 14 insertions, 7 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
diff --git a/.config/x11/xprofile b/.config/x11/xprofile
index 728e4cc..bb8f0ce 100644
--- a/.config/x11/xprofile
+++ b/.config/x11/xprofile
@@ -3,12 +3,15 @@
# This is run when a display manager logs in.
# Used as source for ~/.xinitrc.
-nm-applet & # Network Manager.
-picom & # Transparency and stuff.
-dunst & # Notifications.
-udiskie & # Drive mounting.
-flameshot & # Screenshots.
-pasystray & # Pulse Audio tray icon.
+xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources &
+nm-applet &
+picom &
+dunst &
+udiskie &
+flameshot &
+# When not using a DM use this command.
+# start-pulseaudio-x11 &
+pasystray &
# At the end, start the WM.
# exec i3