pub fn write(dir: &Path) -> Result<Vec<String>, String>
Write both files into dir and give the arguments that make the window manager read them.
dir