Linux Commands Examples

A great documentation place for Linux commands

gsettings

GSettings configuration tool

Synopsis

gsettings get SCHEMA [:PATH] KEY

gsettings monitor SCHEMA [:PATH] [KEY]

gsettings writable SCHEMA [:PATH] KEY

gsettings range SCHEMA [:PATH] KEY

gsettings set SCHEMA [:PATH] KEY VALUE

gsettings reset SCHEMA [:PATH] KEY

gsettings reset-recursively SCHEMA [:PATH]

gsettings list-schemas

gsettings list-relocatable-schemas

gsettings list-keys SCHEMA [:PATH]

gsettings list-children SCHEMA [:PATH]

gsettings list-recursively [SCHEMA [:PATH]]

gsettings help [COMMAND]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

2
source
            
gsettings set com.canonical.desktop.interface scrollbar-mode normal
2
source
            
gsettings set org.gnome.desktop.interface gtk-key-theme Emacs
1
$gsettings set org.gnome.desktop.screensaver lock-enabled false





##What does it do ?

Disable lock screen in Gnome 3
example added by Mauricio
1
source
            
gsettings set org.gnome.desktop.background show-desktop-icons false
0
source
            
gsettings set org.pantheon.terminal.settings cursor-color #838394949696
gsettings set org.pantheon.terminal.settings opacity 100

description

gsettings offers a simple commandline interface to GSettings. It lets you get, set or monitor an individual key for changes.

The SCHEMA and KEY arguments are required for most commands to specify the schema id and the name of the key to operate on. The schema id may optionally have a :PATH suffix. Specifying the path is only needed if the schema does not have a fixed path.

When setting a key, you also need specify a VALUE The format for the value is that of a serialized GVariant, so e.g. a string must include explicit quotes: "'foo'". This format is also used when printing out values.

commands

get

Gets the value of KEY. The value is printed out as a serialised GVariant.

monitor

Monitors KEY for changes and prints the changed values. If no KEY is specified, all keys in the schema are monitored. Monitoring will continue until the process is terminated.

writable

Finds out whether KEY is writable.

range

Queries the range of valid values for KEY.

set

Sets the value of KEY to VALUE. The value is specified as a serialised GVariant.

reset

Resets KEY to its default value.

reset-recursively

Reset all keys under the given SCHEMA.

list-schemas

Lists the installed, non-relocatable schemas. See list-relocatable-schemas if you are interested in relocatable schemas.

list-relocatable-schemas

Lists the installed, relocatable schemas. See list-schemas if you are interested in non-relocatable schemas.

list-keys

Lists the keys in SCHEMA.

list-children

Lists the children of SCHEMA.

list-recursively

Lists keys and values, recursively. If no SCHEMA is given, list keys in all schemas.

help

Prints help and exits.

How can this site be more helpful to YOU ?


give  feedback