There's a lot of non-obvious configuration options in the X11 stack. An .Xresources file can select better fonts, tweak hinting so they look fantastic, and change settings and color themes for many X applications. Out of the box, many X applications look like obsolete garbage, but they can be lightweight, functional, and awesome looking at the same time with a little configuration and love.
After getting your core apps sorted, consider an alternate DE/WM. I personally love the gaps fork of i3. XFCE is nice if you still want DE functionality.
I personally dual boot Debian Stretch and Gentoo ~amd64 - sharing a home partition. I keep Debian more or less stock on GNOME, while I rice the hell out of Gentoo with i3 and no systemd.
Check out https://reddit.com/r/unixporn for inspiration and ideas.
Also, it would be great if we could stop using "rice" as an adjective. Even if you don't find it offensive, some people do.
It's been over a year since I've switched away (to gasp systemd-networkd with vanilla wpa_supplicant), so I can't recall the exact reasons, but I think it was because of lack of doc, terrible debugability, and bad behavior when dealing with multiple known wifi networks.
What's wrong with Network Manager? Show me any other network manager which handles split DNS, WWAN modems and automatically connecting VPNs out of the box with zero configuration.
It connects to my home wifi in <1s. How long for you?
> uses a lot of resources
10 MiB and 9 minutes of CPU time after an uptime of 4 days with many reconnects, which is totally reasonable.
> cannot be installed without bringing in hundreds of megabytes of dependencies
Not true. Even on Ubuntu, it only pulls in 17.4 MB of dependencies:
apt-get install --no-install-recommends network-manager
The following additional packages will be installed:
dconf-gsettings-backend dconf-service glib-networking glib-networking-common glib-networking-services gsettings-desktop-schemas libbluetooth3 libdconf1
libgudev-1.0-0 libmm-glib0 libndp0 libnl-3-200 libnl-genl-3-200 libnm0 libproxy1v5 libsoup2.4-1 wpasupplicant
[...]
After this operation, 17.4 MB of additional disk space will be used.
Do you want to continue? [Y/n]
On RPM based distros, it's even less. They made it the default network manager on RHEL 7, even for the minimal cloud images.It pulls in much more without --no-install-recommends, but you don't need any of those.
This update sequence is also meant to live-update the configuration of the running system. Of course that wouldn't work reliably. My session dropped its hotkeys (the only thing I actually cared about) on every update.
You mean like "dconf dump" and "dconf load"?
I use it for exactly that (importing my hotkeys config).
What you describe (compiled files in /etc) are system-global default values. You only need those for multi-user environments.
> I doubt anybody can measure the parsing advantage of a binary format, but the drawbacks are
The performance advantages are massive. The dconf database is just a hashtable which can be directly mmap'ed, so no parsing happens at all. This does matter for settings which are read hundreds of times (your current desktop theme, for example).
Well, I work as a systems administrator...
>> I doubt anybody can measure the parsing advantage of a binary format, but the drawbacks are
> The performance advantages are massive.
The advantages over reading a big unsorted chunk of text, maybe measurable in an isolated benchmark - depending on the size of the text. But it's not a good idea to put everything in one place.
With the conventional one-file-per program approach the existing file system (instead of custom binary datastructures) is used to speed up the access.
> The dconf database is just a hashtable which can be directly mmap'ed, so no parsing happens at all.
As an aside, mmap is not necessarily faster, or may even be slower. It's probably not worth bothering except in extreme cases. What matters is caching.
"No parsing happens at all", hardly. A hash table just leads to the information. You still have to interpret it. And I assume dconf can only be queried over dbus? This would mean serialization, deserialization, and lots of context switches.
> This does matter for settings which are read hundreds of times (your current desktop theme, for example).
Not convinced. If most keys were read many times, something was very wrong. No. Most things are read by exactly one program.
The pure act of reading config files is neglibible compared to what other things happen at start-up. A process spawn costs about 1ms. Loading the program code itself is a hell of a lot more expensive than loading a tiny text configuration file. There simply is no performance gain coming from putting everything on one crap pile. But it has serious practical disadvantages.
So do I. You only need that feature if you want to, say, set a default wallpaper for new users or prevent them from changing, and I don't see any issues with they way it's implemented. It's a plain text config which can be deployed using your favorite config management system. You'd just put in a change hook like you'd restart a service after changing its config file.
> With the conventional one-file-per program approach the existing file system (instead of custom binary datastructures) is used to speed up the access.
The way it works is that dconf client mmap the database file, so it's the same. dbus does no caching by itself, it uses the same mechanism.
> A hash table just leads to the information. You still have to interpret it. And I assume dconf can only be queried over dbus?
No, dbus is only used for writing. Reading is directly from the filesystem without anything in-between. The serialization format used by dconf matches the in-memory structure, so the application can literally take the value from (mmap) memory and use it as-is. So, no parsing.
I agree with you that it would be less efficient if dbus were used in the read path, this is probably why it's implemented that way.
> Not convinced. If most keys were read many times, something was very wrong.
> No. Most things are read by exactly one program.
> Loading the program code itself is a hell of a lot more expensive than loading a tiny text configuration file
The primary use case for dconf are desktop settings and yes, those are read hundreds of time. Not only at startup, but also at runtime. The current GTK theme or scaling factor is read all the time during rendering.
I'm not advocating that all application config should end up in dconf - as I noted, I like my i3, GPG or SSH config the way they are.
For me, it has lots of practical advantages. For example, I have a script which sets all desktop settings the way I like them (font, scaling factor, focus follows mouse,...) and I can just set them using "gsettings set org.gnome.desktop.interface.scaling-factor 2" instead of figuring out which configs are in which files, how to parse them and merge existing and new configs.
It's not the same. While servers restart on reboot, the config file is not automatically compiled. Also if you don't reboot, most servers are restarted through a uniform interface. Dconf makes an exception without need. You need the dconf infrastructure at deploy time (it might be an installation), and you need to know how to use it.
I've wasted hours figuring out how the configuration is to be used. In the end I still had terrible bugs. I'm glad other programs just do the parsing for me. It works, there never was a problem to begin with.
> The current GTK theme or scaling factor is read all the time during rendering.
I think you are missing the possibility of parsing a configuration once at startup and storing the result in memory in suitable datastructures. It's not like conventional programs would parse the configuration over and over. Fixed binary layouts are very bad for interoperation.
Btw, there is no memory usage problem compared to an mmap solution if every program just parses the _relevant_ information. And it also doesn't preclude a live-update mechanism -- this just has to be done with care. Not every information is trivially live-updatable, as illustrated by the breakage I mentioned.
> I can just set them using "gsettings set org.gnome.desktop.interface.scaling-factor 2"
This can be also done with text configuration files. Some programs do it. Most do it not (including dconf, which doesn't update your original input file) because the tradeoffs are bad. It has nothing to do with the question whether or not the serialization format is text.
Text vs binary is just this question: Do I need absolute performance or absolute discoverability? In the case of configuration files, the answer is clear.
I simply have a hook for my dotfile repo which calls "dconf dump / > .dconf". This dumps the entire tree and it's nicely versioned in the repo.
This is unique on Windows. I actually took a look at dconf on my machine and no application occupied more than one key.
GEdit sits in /org/gnome/gedit and virt-manager in /org/virt-manager as you'd expect.
I also hate Android's behavior, since there are situations where you want to keep them. If I remove GEdit for whatever reason, I expect it to keep my settings.
There are legitimate reasons to criticize Gnome, but this isn't one of them. dconf is totally reasonable and has significant advantages over plain text.
Getting/setting single values in a plain text config file is cumbersome and error-prone, and even if there's a library which is able to read that particular format, it often clobbers comments and formatting. For systems administration, you usually solve this by generating the entire config file from a template since nothing on the server should change your config files anyway.
However, on the desktop, many different application want to read and write keys. Tray applets, the system config panel, even your media player... They would inevitably conflict and you'd have to implement file-based locking.
Another topic: real-time notifications. If you modify the text size in the Gnome Control Panel, what happens is that the panel modifies the value in dconf and dconf sends a notification to all running Gnome applications. You could implement this using inotify, but you'd need code in each of your applications to open the config file, parse it and figure out which setting actually changed.
Single dconf lookups are really fast since everything is zero-copy and doesn't involve any syscalls. This is much faster than opening, reading and parsing config files.
dconf doesn't aim to replace all plain text config files. Storing the i3 or SSH configuration in dconf would be stupid (or even using dconf on a server to begin with).
If your applications directly read and store configuration keys belonging to other applications, you have way worse problems in your architecture than configuration file format.
Cut off one of these and brace for the whining, that gnome is dumbing everything down and locking up your settings.
What? The INI format is very simple and there are numerous libraries that handle it cleanly in any language.
> and even if there's a library which is able to read that particular format, it often clobbers comments and formatting.
What? These are primarily machine-readable configuration files. Why is formatting relevant? And how are comments relevant to dconf, since it uses a binary format anyway?
If a plain-text file isn't good enough, at least have the decency to use SQLite.
Lock files.