tldr/pages/linux/dconf-write.md

30 lines
634 B
Markdown
Raw Permalink Normal View History

2021-05-16 18:47:31 +01:00
# dconf write
> Write key values in dconf databases.
> See also: `dconf`.
> More information: <https://manned.org/dconf>.
2021-05-16 18:47:31 +01:00
- Write a specific key value:
2021-05-16 18:47:31 +01:00
`dconf write {{/path/to/key}} "{{value}}"`
2021-05-16 18:47:31 +01:00
- Write a specific string key value:
2021-05-16 18:47:31 +01:00
`dconf write {{/path/to/key}} "'{{string}}'"`
2021-05-16 18:47:31 +01:00
- Write a specific integer key value:
2021-05-16 18:47:31 +01:00
`dconf write {{/path/to/key}} "{{5}}"`
2021-05-16 18:47:31 +01:00
- Write a specific boolean key value:
2021-05-16 18:47:31 +01:00
`dconf write {{/path/to/key}} "{{true|false}}"`
2021-05-16 18:47:31 +01:00
- Write a specific array key value:
2021-05-16 18:47:31 +01:00
`dconf write {{/path/to/key}} "[{{'first', 'second', ...}}]"`
- Write a specific empty array key value:
`dconf write {{/path/to/key}} "@as []"`