1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 23:43:03 +00:00

adding dconf doc

This commit is contained in:
deadc0de6
2024-10-09 10:24:37 +02:00
parent 70e6e90acd
commit af6638f1e7

24
docs/howto/manage-dconf-settings.md vendored Normal file
View File

@@ -0,0 +1,24 @@
# Manage dconf settings
Here is an example (thanks [@gmvelencoso](https://github.com/gmvelencoso))
using dotdrop to manage dconf settings:
```yaml
actions:
dconf_load: dconf load "{0}" < "{{@@ _dotfile_abs_src @@}}"
trans_update:
dconf_dump: dconf dump "{2}" > "{1}"
dconf_tilix:
src: config/tilix/tilix.dconf
dst: /tmp/tilix.dconf
actions:
- dconf_load /com/gexperts/Tilix/
trans_update: dconf_dump /com/gexperts/Tilix/
link: nolink
````
On `install`/`compare`, the [action](../config/config-actions.md) `dconf_load` will call `dconf` to load
the configuration from the file stored in the *dotpath* under `config/tilix/tilix.dconf`.
On `update`, the [transformation](../config/config-transformations.md) `trans_update` will dump the configuration
entry and use it to update the file in the *dotpath*.