3 ms·
A contrast of X Resources with other modes of configuration, such as the GNOME / KDE / FreeDesktop model reveals some interesting twists. Under X Resources, no
by dredmorbius 5y ago
A contrast of X Resources with other modes of configuration, such as the GNOME / KDE / FreeDesktop model reveals some interesting twists.
Under X Resources, no, I can't dynamically change the resolution or configuration of a running process. On the other hand, I can update resources and configure different applications independently. One of my frustrations with GNOME/KDE is that the configuration system seems to think that I want the same settings for every application presently running. This might very well not be the case: I could prefer larger and/or different fonts for specific applications or for specific processes or windows. The uncoupling of settings in some cases (e.g., text / font zoom in some apps) suggests that the FreeDesktop folk have become grudgingly aware of this.
Many old-school Xt / Motif utilities will also accept commandline options, either via flags or in some cases resources specifications. These can be tied together in scripts to launch, say, a range of values (fonts, sizes, colours) for specific tasks. I'd long done this to differentiate between terminals running (nominally) bash shells, vim, mutt, w3m, and a launcher which would open a set of terminal windows, each with different background colours and geometry specifications to be placed over a desktop workspace when working on multiple remote hosts (colours, prompts, and spatial cues to "this is not your local box").
And of course, since resources live in files, they can be documented, commented, and divided (separate files) for various tasks, as well as version controlled. Few if any of which the GNOME configuration database permits. The files can be readily copied between systems (as I've done for decades).
X Resources can be clunky in some regards, but they're also lightweight, powerful, configurable, and get out of the way rather than obstruct my goals.