src: add x11-settings encoder/decoder