I'm trying to force as many of my dotfiles as possible to honor
$XDG_CONFIG_HOME (and friends) instead of crapping all over my home directory. This involves some minor tweaks to some common apps, but nothing too complicated. However, I'm having trouble wrestling all of
X's config files into
~/.config/X directory or wherever I want it to go. Specifically, the ornery config files are:
.Xauthority .Xdefaults .xdvirc .xinitrc .xlog .Xresources .xscreensaver .xsession-errors
I know that it will be quite difficult to avoid some of those sticking around in my home directory (
xinitrc, cough cough) but it seems like all the others should be pretty mobile. In fact, many of them (
xsession-errors) feel like they should be relocatable with an environment variable or two -- if my
zshrc were loaded before
xinitrc, that is.
Does anyone know an easy way to force the majority of these files to obey
XDG and take their rightful place in
~/.config? The cleanliness of my home directory would greatly appreciate any tips.