An open API service indexing awesome lists of open source software.

https://github.com/pixelastic/dconf-export

Export your dconf settings as an editable .sh file.
https://github.com/pixelastic/dconf-export

Last synced: 3 months ago
JSON representation

Export your dconf settings as an editable .sh file.

Awesome Lists containing this project

README

          

dconf-export
============
Export your dconf settings in an editable `.sh` file.

Usage
-----
dconf-export org.gnome.desktop.wm.keybindings

Use it to make a backup of your dconf settings or if you'd rather edit them
manually than in a GUI.

Example
-------

Previous example will create and executable file
`org.gnome.desktop.wm.keybindings.sh` with following content :

```Shell
#!/usr/bin/env sh
gsettings set org.gnome.desktop.wm.keybindings close "['F4']"
gsettings set org.gnome.desktop.wm.keybindings maximize "['Up']"
gsettings set org.gnome.desktop.wm.keybindings minimize "['Down']"
# [...]
gsettings set org.gnome.desktop.wm.keybindings show-desktop "['D']"
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['Tab']"
# [...]
```

Limitations
-----------

`dconf-export` needs ruby to run. It will also not work on relocatable schemas.

Alternatives
------------

* dconf has its own mechanism to dump the configuration with the command `dconf dump /`.
* A set of simple shell scripts for backing up and restoring parts of the dconf database: https://github.com/ypid/scripts/tree/master/dconf-backup