Change font for GTK application
Changing font for GTK applications using GSettings command
This command changes font for all GTK applications
# COMMAND SCHEMA KEY VALUE
gsettings set org.gnome.desktop.interface font-name "Iosevka 11"
Let's break down this command,
GSettings can be seen as a database, whose schema is described in an XML file (conventionally name gschema.xml
) which is then compiled. It can be used to set user preferences like changing font for GTK applications or changing icon view for Nautilus.
The schema XML files are stored in /usr/share/glib-2.0/schemas
(on Fedora and similar distro)
You can list the available schema with: gsettings list-schemas
Within each schema, preferences are stored as key-value pairs.
To list all keys within a schema: gsettings list-keys $SCHEMA_NAME
To list all keys and their current values recursively: gsettings list-recursively $SCHEMA_NAME
Links:
GSettings wiki
Man page