Gsettings

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

gsettings is a command-line program allowing getting and setting configuration values in a dconf database. Unlike the dconf(1) tool, gsettings(1) performs type and consistency checks. gsettings is provided by the dev-libs/glib package.

Collections of configuration data are called schemas; the gsettings-desktop-schemas package provides various schemas for the GNOME desktop.

Usage

List installed schemas:

user $gsettings list-schemas

List the keys associated with a particular schema, including their current values:

user $gsettings list-recursively org.gnome.desktop.interface

Describe the meaning of a particular key, e.g. gtk-theme:

user $gsettings describe org.gnome.desktop.interface gtk-theme

Get the current value of a particular key, e.g. text-scaling-factor:

user $gsettings get org.gnome.desktop.interface text-scaling-factor

Set the current value of a particular key, e.e. text-scaling-factor:

user $gsettings set org.gnome.desktop.interface text-scaling-factor 2.0

See also

  • GTK — a toolkit for creating graphical user interfaces.
  • GNOME — a feature-rich desktop environment provided by the GNOME project.