blob: 4a07f16aba862404cf299483ab9c902e656478be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#!/usr/bin/env bash
printf "\033[0;34m"
echo "Cleaning previous configs"
rm -rf .config/ .repos/ .scripts/ .boilerplates/
mkdir -p .config/{dunst,qutebrowser,gtk-2.0,gtk-3.0,nvim,zathura,mpv} .repos
echo "Copying configs"
# Scripts
cp -r "$HOME"/.scripts/ .
# Configs
cp "$HOME"/.config/dunst/dunstrc .config/dunst/
cp "$HOME"/.config/qutebrowser/config.py .config/qutebrowser/
cp "$HOME"/.config/gtk-2.0/* .config/gtk-2.0/
cp "$HOME"/.config/gtk-3.0/* .config/gtk-3.0/
cp "$HOME"/.config/nvim/init.vim .config/nvim/
cp "$HOME"/.config/zathura/zathurarc .config/zathura/
cp "$HOME"/.config/mpv/mpv.conf .config/mpv/
cp "$HOME"/.config/uncrustify.cfg .config/
# Inits
cp "$HOME"/.bash_profile "$HOME"/.bashrc "$HOME"/.xinitrc "$HOME"/.Xresources .
cp -r "$HOME"/.lein .
# Boilerplates
cp -r "$HOME"/.boilerplates .
# Crypto keys etc.
echo "Uploading keys"
scp -rq "$HOME"/.crypto/ root@10.0.0.33:/mnt/ssd/
# Repos
echo "Cleaning suckless configs"
cp -r "$HOME"/.repos/* .repos/
find .repos/ -type d -name ".git" -exec rm -rf {} +
find .repos/ -type f -exec sh -c "file -i '{}' | grep -q 'charset=binary'" \; -delete
# Installed programs
echo "Getting package list"
pacman -Qqe > packages.txt
printf "\nChanged files:\n"
printf "\033[0;32m"
git status -s | cut -c4-
printf "\033[0m"
|