dotfiles
Yes, my $HOME has a git repo now :(
git clone git://git.shimmy1996.com/dotfiles.git
import-gsettings (391B)
1 #!/usr/bin/env bash
2
3 # usage: import-gsettings <gsettings key>:<settings.ini key> <gsettings key>:<settings.ini key> ...
4
5 expression=""
6 for pair in "$@"; do
7 IFS=:; set -- $pair
8 expressions="$expressions -e 's:^$2=(.*)$:gsettings set org.gnome.desktop.interface $1 \"\1\":e'"
9 done
10 IFS=
11 eval exec sed -E $expressions "${XDG_CONFIG_HOME:-$HOME/.config}"/gtk-3.0/settings.ini >/dev/null