Add some dconf syncing using scpace

This commit is contained in:
Sage Vaillancourt 2024-02-17 14:06:08 -05:00
parent 7fe5811cce
commit 2dae55b272
1 changed files with 14 additions and 0 deletions

View File

@ -82,12 +82,26 @@ function pushdot {
else else
git commit -a -m "$@" && git push -u origin main git commit -a -m "$@" && git push -u origin main
fi fi
if command -v scpace &> /dev/null; then
dconf dump / > /tmp/dconf-dump || return 1
scpace /tmp/dconf-dump 'sagev.space:~/dconf-dump'
rm /tmp/dconf-dump
else
echo "An alias for scpace has not been defined on this device!"
fi
cd - cd -
} }
function getdot { function getdot {
cd "$DOT_DIR" || return 1 cd "$DOT_DIR" || return 1
git pull && ./copy.sh git pull && ./copy.sh
if command -v scpace &> /dev/null; then
scpace 'sagev.space:~/dconf-dump' /tmp/dconf-dump
dconf load / < /tmp/dconf-dump || return 1
rm /tmp/dconf-dump
else
echo "An alias for scpace has not been defined on this device!"
fi
cd - > /dev/null cd - > /dev/null
} }