LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gsettings

GNOME desktop configuration command-line interface

TLDR

List every schema installed on the system
$ gsettings list-schemas
copy
List the keys a schema defines
$ gsettings list-keys [org.gnome.desktop.interface]
copy
Read a key
$ gsettings get [org.gnome.desktop.interface] [color-scheme]
copy
Write a key
$ gsettings set [org.gnome.desktop.interface] [color-scheme] [prefer-dark]
copy
Show what a key is for
$ gsettings describe [org.gnome.desktop.interface] [color-scheme]
copy
Show the values a key will accept
$ gsettings range [org.gnome.desktop.interface] [color-scheme]
copy
Check whether a key is writable or locked down by policy
$ gsettings writable [org.gnome.desktop.interface] [color-scheme]
copy
Watch a key and print every change as it happens
$ gsettings monitor [org.gnome.desktop.interface] [color-scheme]
copy
Dump every key and value in one schema
$ gsettings list-recursively [org.gnome.desktop.wm.keybindings]
copy
Undo a single customization
$ gsettings reset [org.gnome.desktop.interface] [color-scheme]
copy
Undo every customization in a schema
$ gsettings reset-recursively [org.gnome.desktop.interface]
copy
Use schemas from a directory that is not installed system-wide
$ gsettings --schemadir [path/to/schemas] list-schemas
copy

SYNOPSIS

gsettings command [arguments]

DESCRIPTION

gsettings is the command-line interface for GSettings, GNOME's configuration system. It provides schema-validated access to dconf settings, ensuring type safety and valid values.Settings are organized in schemas (like org.gnome.desktop.interface) containing typed keys. Unlike direct dconf access, gsettings validates values against the schema before applying them.

PARAMETERS

get SCHEMA KEY

Get the value of a key
set SCHEMA KEY VALUE
Set a key's value (must match schema type)
reset SCHEMA KEY
Reset key to schema default
list-schemas
List installed schemas
list-keys SCHEMA
List keys in a schema
list-recursively [SCHEMA]
List all settings (optionally filtered by schema)
range SCHEMA KEY
Show valid values for a key
describe SCHEMA KEY
Show human-readable description
monitor SCHEMA [KEY]
Watch for changes

COMMON SCHEMAS

org.gnome.desktop.interface - Desktop appearance settingsorg.gnome.desktop.wm.preferences - Window manager preferencesorg.gnome.shell - GNOME Shell settings

INSTALL

sudo apt install libglib2.0-bin
copy
sudo dnf install glib
copy
sudo apk add glib
copy
brew install glib
copy
nix profile install nixpkgs#glib
copy

CAVEATS

Only works with applications using GSettings (primarily GNOME). Some settings require logout or restart to take effect. Schema must be installed for settings to work.

HISTORY

GSettings was introduced in GLib 2.26 (2010) as a replacement for GConf. It uses dconf as its backend while providing schema validation, making configuration more robust and introspectable.

SEE ALSO

dconf(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid