Read settings from Xresource.

Code borrowed from Sean Pringle (yet again).