#!/bin/sh

dir="$PWD"
scripts_subdir="$PWD/scripts"
config="${dir}/config"

rsync -a \
	--exclude 'bookmarks' \
	--exclude 'quickmarks' \
	--exclude 'qsettings' \
	--exclude 'autoconfig.yml' \
	~/.config/qutebrowser "$config"
rsync -a ~/.config/vesktop/settings "${config}/vesktop"
rsync -a ~/.config/bspwm "$config"
rsync -a ~/.config/sxhkd "$config"
rsync -a ~/.config/xfce4 \
	--exclude 'desktop' "$config"
rsync -a ~/.config/rofi "$config"
rsync -a ~/.config/i3 "$config"
# cp ~/.config/picom.conf .

cd ~/.local/bin || exit
cp \
bsp-auto-monitors \
bsp-float \
bsp-key-daemon \
bsp-smove \
le-keyboard \
le-audio \
sxhkd-help \
change-scheme \
le-wallpaper \
le-wallpaper-open \
xfce4-le-wallpaper \
qutebrowser \
qutesearch \
mdread \
rack \
f \
"$scripts_subdir"
cd "$dir" || exit

cp -r ~/.local/share/qutebrowser/userscripts "${dir}/local/share/qutebrowser"
