-
Notifications
You must be signed in to change notification settings - Fork 0
/
sync.sh
executable file
·31 lines (29 loc) · 874 Bytes
/
sync.sh
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
#!/bin/bash
if [ "$1" = "get" ]; then
cp ~/.config/wallpaper/* wallpaper/
cp /usr/bin/i3exit bin/
cp /usr/bin/i3undock bin/
cp ~/.config/i3/config i3/
cp /etc/i3status.conf i3/
cp /etc/i3blocks.conf i3/
cp ~/.zshrc config/
cp ~/.config/starship.toml config/
cp -r /usr/local/bin/*.sh scripts/
cp ~/.config/Code/User/settings.json config/
cp -r ~/.screenlayout/* screenlayout/
fi
if [ "$1" = "push" ]; then
mkdir ~/.config/wallpaper
cp wallpaper/* ~/.config/wallpaper
mkdir ~/.config/scripts
cp scripts/* ~/.config/scripts
cp config/settings.json ~/.config/Code/User/settings.json
cp i3/config ~/.config/i3/config
cp -r screenlayout/* ~/.screenlayout
cp config/.zshrc ~/
cp config/starship.toml ~/.config/
cp config/emoji.txt ~/.config/
sudo cp i3/i3status.conf /etc/
sudo cp i3/i3blocks.conf /etc/
sudo cp bin/* /usr/bin
fi