GDM and KDE Plasma source systemd user environment variables from ~/.config/environment.d/, sway does not [0].
Let's provide this functionality while we're at it.
I took a quick look at this now and I realized this does not work - it only sources the first configuration file found, not all of them. I will submit a fix as soon as I test it (today or tomorrow)
GDM and KDE Plasma source systemd user environment variables from ~/.config/environment.d/, sway does not [0]. Let's provide this functionality while we're at it.
[0] https://wiki.archlinux.org/title/Environment_variables#Wayland_environment