I was sad to discover that not all string-like config items accept input from external processes. I had to resort to on-the-fly sed templating as a hackaround.
Glad that that it supports XDG though.