Custom dconf-dump that skips background settings
This commit is contained in:
parent
1ddd70cad6
commit
fda3a62729
|
@ -75,9 +75,26 @@ fi
|
||||||
source ~/.shell_aliases
|
source ~/.shell_aliases
|
||||||
source ~/.zsh_local
|
source ~/.zsh_local
|
||||||
|
|
||||||
|
function dconf-dump {
|
||||||
|
local ignore_section=false
|
||||||
|
dconf dump / | while read -r line; do
|
||||||
|
if $ignore_section; then
|
||||||
|
if [[ "$line" == "["* ]]; then
|
||||||
|
ignore_section=false
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [[ "$line" == "[org/gnome/desktop/background]" ]]; then
|
||||||
|
ignore_section=true
|
||||||
|
else
|
||||||
|
echo "$line"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
function push-dconf {
|
function push-dconf {
|
||||||
if command -v scpace &> /dev/null; then
|
if command -v scpace &> /dev/null; then
|
||||||
dconf dump / > /tmp/dconf-dump || return 1
|
dconf-dump > /tmp/dconf-dump || return 1
|
||||||
scp -P 11275 /tmp/dconf-dump 'sage@sagev.space:~/dconf-dump'
|
scp -P 11275 /tmp/dconf-dump 'sage@sagev.space:~/dconf-dump'
|
||||||
rm /tmp/dconf-dump
|
rm /tmp/dconf-dump
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue