gsettings
Practical reference for the gsettings command used to list, read, and modify GNOME desktop settings from the command line, including common examples for Gedit preferences
Check list
gsettings list-recursively
List relocatable schemas
gsettings list-relocatable-schemas
List keys in a schema
gsettings list-keys
List children of a schema
gsettings list-children
List keys and values, recursively
gsettings list-recursively
Queries the range of a key
gsettings range
Queries the description of a key
gsettings describe
Get the value of a key
gsettings get
Set the value of a key
gsettings set
Reset the value of a key
gsettings reset
Reset all values in a given schema
gsettings reset-recursively
Check if a key is writable
gsettings writable
Watch for changes
gsettings monitor
Examples of how to change settings with gsettings
Enable current line highlighting in Gedit
gsettings set org.gnome.gedit.preferences.editor highlight-current-line true
Set Gedit color scheme to cobalt
gsettings set org.gnome.gedit.preferences.editor scheme 'cobalt'
Disable use of the default editor font
gsettings set org.gnome.gedit.preferences.editor use-default-font false
Set a custom editor font in Gedit
gsettings set org.gnome.gedit.preferences.editor editor-font 'Cantarell Regular 12'