setting myself the modular and portable dotfiles challenge has certainly been interesting and I'm nowhere near done.
the part that's harder than I expected is environment variables.
Wayland compositors don't source ~/.xprofile, systemd isn't an option for portability reasons, and there doesn't appear to be a standard I can find.
best I can think of is having a ~/.config/env directory containing files for generic variables, wm/compositor-specifics and also instance-specifics parsed by a script run on login, or some kind of giant switchcase script.








