-
Notifications
You must be signed in to change notification settings - Fork 12
Request for a GUI #17
Comments
Re previewing settings, are you specifically referring to font rendering? It's been a long time since I've looked at GTK+, but I think it always uses the settings that it picks up from XSETTINGS and other configuration sources, so I'm not sure that previewing is a possibility -- you might need to just update the settings and then see what apps look like. If you open a simple GTK+ app like gedit and then make changes to Re adding a GUI for xsettingsd, it feels a bit out-of-scope to me:
Would it help if https://github.com/derat/xsettingsd/wiki/Settings had screenshots of text rendered using some common configs? The downside is that the same settings can result in different rendering depending on e.g. the version of FreeType that's installed. |
I am thinking about something like LXAppearance (https://wiki.lxde.org/en/LXAppearance), but instead of changing toolkit configuration files directly (like It would present options (like icon theme, gtk theme, font, etc.) for the user too choose from, and show how they would look like when applied. If they are saved, then the configuration file is definitely changed. Maybe one can just change LXAppearance to save the configuration to |
It would be a new optional application. Users can still directly edit the configuration file if desired. It would be very helpful for those not using a desktop environment already providing ease ways to setting the configuration. There are plenty of window managers in this situation. |
It's hard to believe: is there really no better way than editing the conf file and then kill -HUP? I see that these settings also show up in I know of at least two problems in Qt that XSettings might be able to solve: 1) dynamic theme switching (but the road is paved with what GTK does); 2) separate DPI per monitor: we're having a little debate about how to do it here: https://codereview.qt-project.org/c/qt/qtbase/+/376415 I was thinking of writing a tray application to switch the theme (because I want light/dark modes on my plain old openbox session), but am loathe to programmatically parse and rewrite ~/.config/xsettingsd/xsettingsd.conf and programmatically do the kill -HUP. |
Mainly to strike a blow for
This depends a lot on the viewpoint. From my point of view, If you want a GUI, there are a lot of bloaty settings daemons with inflexible and IMHO cumbersome GUIs out there, be it from GNOME, Cinnamon, MATE or XFCE. |
As I understand it, the settings that you see when you run I wrote down my 2014-era vague understanding of the X11 font configuration landscape at https://github.com/derat/font-config-info/commits/master/README.
I don't think you need to do any parsing, right? It seems like you could just write separate #!/bin/sh -e
[ "$1" = dark ] || [ "$1" = light ] || (echo 'Missing light/dark arg' >&2 ; exit 1)
ln -sf "${1}.conf" "${HOME}/.config/xsettingsd/xsettingsd.conf"
killall -HUP xsettingsd Or instead of a symlink, you could split your config into common and theme-specific parts and use |
I can think of a two good ways this could be implemented:
|
This has been supported since pretty much the beginning (using |
It would be very interesting to have a GUI for editing the settings and previewing them.
Any chance of adding one?
The text was updated successfully, but these errors were encountered: