From f82fd9c8f308c7eac988ff0c3e5df4968ef97914 Mon Sep 17 00:00:00 2001 From: Steven Pitts <25968054+makusu2@users.noreply.github.com> Date: Sun, 16 May 2021 13:47:31 -0400 Subject: [PATCH] dconf, dconf-write: add page (#5967) --- pages/linux/dconf-write.md | 24 ++++++++++++++++++++++++ pages/linux/dconf.md | 17 +++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 pages/linux/dconf-write.md create mode 100644 pages/linux/dconf.md diff --git a/pages/linux/dconf-write.md b/pages/linux/dconf-write.md new file mode 100644 index 000000000..d44c4e656 --- /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 000000000..cb1652409 --- /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}}`