Skip to content

Commit

Permalink
adding dconf doc
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Oct 9, 2024
1 parent 70e6e90 commit af6638f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/howto/manage-dconf-settings.md
Original file line number Diff line number Diff line change
@@ -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*.

0 comments on commit af6638f

Please sign in to comment.