Skip to content

Instantly share code, notes, and snippets.

@cmndrsp0ck
Forked from peterrus/tilix_backup.sh
Created May 1, 2022 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmndrsp0ck/e5c7c3258f51e19055b791c5f94214f5 to your computer and use it in GitHub Desktop.
Save cmndrsp0ck/e5c7c3258f51e19055b791c5f94214f5 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