replace modes sh with conf for Xdefaults