Skip to content

Instantly share code, notes, and snippets.

@peterrus
Created June 17, 2021 20:06
Show Gist options
  • Save peterrus/f7a8f6ce09ba6506b780f6ca8bceb74f to your computer and use it in GitHub Desktop.
Save peterrus/f7a8f6ce09ba6506b780f6ca8bceb74f to your computer and use it in GitHub Desktop.
Backs up and restores Tilix settings
#!/usr/bin/env bash
# Backs up and restores tilix settings
set -e
if [[ $1 == 'backup' ]]; then
dconf dump '/com/gexperts/Tilix/' > tilix-settings.dconf
echo "backup done"
exit 0
fi
if [[ $1 == 'restore' ]]; then
dconf load '/com/gexperts/Tilix/' < tilix-settings.dconf
echo "restore done"
exit 0
fi
echo "parameter 0: [backup|restore]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment