diff --git a/pages/linux/dconf-read.md b/pages/linux/dconf-read.md new file mode 100644 index 000000000..c18e3f4a6 --- /dev/null +++ b/pages/linux/dconf-read.md @@ -0,0 +1,13 @@ +# dconf read + +> Read key values from dconf databases. +> See also: `dconf`. +> More information: . + +- Print a specific key value: + +`dconf read {{/path/to/key}}` + +- Print a specific key [d]efault value: + +`dconf read -d {{/path/to/key}}` diff --git a/pages/linux/dconf-reset.md b/pages/linux/dconf-reset.md new file mode 100644 index 000000000..5752c659b --- /dev/null +++ b/pages/linux/dconf-reset.md @@ -0,0 +1,13 @@ +# dconf reset + +> Reset key values in dconf databases. +> See also: `dconf`. +> More information: . + +- Reset a specific key value: + +`dconf read {{/path/to/key}}` + +- Reset a specific directory: + +`dconf read -d {{/path/to/directory/}}` diff --git a/pages/linux/dconf-write.md b/pages/linux/dconf-write.md index d44c4e656..637f35c79 100644 --- a/pages/linux/dconf-write.md +++ b/pages/linux/dconf-write.md @@ -1,24 +1,29 @@ # dconf write -> Write a value to a dconf database path. -> More information: . +> Write key values in dconf databases. +> See also: `dconf`. +> More information: . -- Write a string to a dconf path (note the nested quotes): +- Write a specific key value: -`dconf write {{/example/dconf/path}} "'{{Example Value}}'"` +`dconf write {{/path/to/key}} "{{value}}"` -- Write a boolean to a dconf path: +- Write a specific string key value: -`dconf write {{/example/dconf/path}} {{true|false}}` +`dconf write {{/path/to/key}} "'{{string}}'"` -- Write an integer to a dconf path: +- Write a specific integer key value: -`dconf write {{/example/dconf/path}} {{16}}` +`dconf write {{/path/to/key}} "{{5}}"` -- Write an array to a dconf path: +- Write a specific boolean key value: -`dconf write {{/example/dconf/path}} "[{{'My First Value', 'My Second Value'}}]"` +`dconf write {{/path/to/key}} "{{true|false}}"` -- Write an empty array to a dconf path: +- Write a specific array key value: -`dconf write {{/example/dconf/path}} "@as []"` +`dconf write {{/path/to/key}} "[{{'first', 'second', ...}}]"` + +- Write a specific empty array key value: + +`dconf write {{/path/to/key}} "@as []"` diff --git a/pages/linux/dconf.md b/pages/linux/dconf.md index cb1652409..66c957512 100644 --- a/pages/linux/dconf.md +++ b/pages/linux/dconf.md @@ -1,17 +1,29 @@ # dconf -> Simple tool for manipulating dconf databases. -> See also `dconf write`. -> More information: . +> Manage dconf databases. +> See also: `dconf-read`, `dconf-reset`, `dconf-write`, `gsettings`. +> More information: . -- Print the value of a dconf path: +- Print a specific key value: -`dconf read {{/example/dconf/path}}` +`dconf read {{/path/to/key}}` -- List contents of a dconf path: +- Print a specific path sub-directories and sub-keys: -`dconf list {{/example/dconf/path}}` +`dconf list {{/path/to/directory/}}` -- Watch for dconf database changes in a path and subpaths: +- Write a specific key value: -`dconf watch {{/example/dconf/path}}` +`dconf write {{/path/to/key}} "{{value}}"` + +- Reset a specific key value: + +`dconf reset {{/path/to/key}}` + +- Watch a specific key/directory for changes: + +`dconf watch {{/path/to/key|/path/to/directory/}}` + +- Dump a specific directory in INI file format: + +`dconf dump {{/path/to/directory/}}`