From 531b0486ce0f485f93e8a043f6bead27883d2669 Mon Sep 17 00:00:00 2001 From: yump Date: Thu, 22 Jul 2021 18:02:05 -0500 Subject: [PATCH] gsettings: add page (#6251) --- pages/linux/gsettings.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/linux/gsettings.md diff --git a/pages/linux/gsettings.md b/pages/linux/gsettings.md new file mode 100644 index 000000000..8273d6ba4 --- /dev/null +++ b/pages/linux/gsettings.md @@ -0,0 +1,32 @@ +# gsettings + +> Query and modify dconf settings with schema validation. +> More information: . + +- Set the value of a key. Fails if the key doesn't exist or the value is out of range: + +`gsettings set {{org.example.schema}} {{example-key}} {{value}}` + +- Print the value of a key or the schema-provided default if the key has not been set in `dconf`: + +`gsetings get {{org.example.schema}} {{example-key}}` + +- Unset a key, so that its schema default value will be used: + +`gsettings reset {{org.example.schema}} {{example-key}}` + +- Display all (non-relocatable) schemas, keys, and values: + +`gsettings list-recursively` + +- Display all keys and values (default if not set) from one schema: + +`gsettings list-recursively {{org.example.schema}}` + +- Display schema-allowed values for a key (helpful with enum keys): + +`gsettings range {{org.example.schema}} {{example-key}}` + +- Display the human-readable description of a key: + +`gsettings describe {{org.example.schema}} {{example-key}}`