diff --git a/pages/linux/dconf-write.md b/pages/linux/dconf-write.md new file mode 100644 index 0000000000..d44c4e6565 --- /dev/null +++ b/pages/linux/dconf-write.md @@ -0,0 +1,24 @@ +# dconf write + +> Write a value to a dconf database path. +> More information: . + +- Write a string to a dconf path (note the nested quotes): + +`dconf write {{/example/dconf/path}} "'{{Example Value}}'"` + +- Write a boolean to a dconf path: + +`dconf write {{/example/dconf/path}} {{true|false}}` + +- Write an integer to a dconf path: + +`dconf write {{/example/dconf/path}} {{16}}` + +- Write an array to a dconf path: + +`dconf write {{/example/dconf/path}} "[{{'My First Value', 'My Second Value'}}]"` + +- Write an empty array to a dconf path: + +`dconf write {{/example/dconf/path}} "@as []"` diff --git a/pages/linux/dconf.md b/pages/linux/dconf.md new file mode 100644 index 0000000000..cb1652409c --- /dev/null +++ b/pages/linux/dconf.md @@ -0,0 +1,17 @@ +# dconf + +> Simple tool for manipulating dconf databases. +> See also `dconf write`. +> More information: . + +- Print the value of a dconf path: + +`dconf read {{/example/dconf/path}}` + +- List contents of a dconf path: + +`dconf list {{/example/dconf/path}}` + +- Watch for dconf database changes in a path and subpaths: + +`dconf watch {{/example/dconf/path}}`