-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
executable file
·75 lines (62 loc) · 2.56 KB
/
update.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
# FILES IN ~/.config
mkdir -p ~/.dotfiles/.config
cp -r ~/.config/i3/ ~/.dotfiles/.config/
cp -r ~/.config/nitrogen/ ~/.dotfiles/.config/
cp -r ~/.config/sway/ ~/.dotfiles/.config/
cp -r ~/.config/fish/ ~/.dotfiles/.config/
cp -r ~/.config/kitty/ ~/.dotfiles/.config/
cp -r ~/.config/neofetch/ ~/.dotfiles/.config/
cp -r ~/.config/nvim/ ~/.dotfiles/.config/
cp -r ~/.config/rofi/ ~/.dotfiles/.config/
cp -r ~/.config/polybar/ ~/.dotfiles/.config/
cp -r ~/.config/cava ~/.dotfiles/.config
cp -r ~/.config/picom.conf ~/.dotfiles/.config/
cp -r ~/.config/spicetify ~/.dotfiles/.config/
cp -r ~/.config/flameshot ~/.dotfiles/.config/
cp -r ~/.config/autorandr ~/.dotfiles/.config/
cp -r ~/.config/albafetch ~/.dotfiles/.config/
cp -r ~/.config/swayidle ~/.dotfiles/.config/
cp -r ~/.config/waybar ~/.dotfiles/.config/
cp -r ~/.config/wlogout ~/.dotfiles/.config/
cp -r ~/.config/MandoHud ~/.dotfiles/.config/
cp -r ~/.config/kanshi ~/.dotfiles/.config/
cp -r ~/.config/dunst ~/.dotfiles/.config/
cp ~/.config/flameshotrc ~/.dotfiles/.config/
cp ~/.config/libinput-gestures.conf ~/.dotfiles/.config/
cp ~/.config/libinput-gestures-wayland.conf ~/.dotfiles/.config/
cp ~/.config/chromium-flags.conf ~/.dotfiles/.config/
cp ~/.config/rofimoji.rc ~/.dotfiles/.config/
cp -r ~/.config/hypr ~/.dotfiles/.config
rm ~/.dotfiles/.config/fish/fishd.tmp.*
# FILES IN ~
cp -r ~/.screenlayout/ ~/.dotfiles/
cp ~/.profile ~/.dotfiles/.profile
mkdir -p ~/.dotfiles/wallpapers
cp -r ~/Immagini/wallpapers ~/.dotfiles/
# FILES IN .local (custom scripts)
mkdir -p ~/.dotfiles/.local/bin
#cp ~/.local/bin/autostart.sh ~/.dotfiles/.local/bin/
cp ~/.local/bin/buds ~/.dotfiles/.local/bin/
cp ~/.local/bin/rebuds ~/.dotfiles/.local/bin/
cp ~/.local/bin/performance ~/.dotfiles/.local/bin/
cp ~/.local/bin/balanced ~/.dotfiles/.local/bin/
cp ~/.local/bin/powersave ~/.dotfiles/.local/bin/
cp ~/.local/bin/blackscreen.py ~/.dotfiles/.local/bin/
cp ~/.local/bin/g502profile.sh ~/.dotfiles/.local/bin/
cp ~/.local/bin/i3-layouts ~/.dotfiles/.local/bin/
cp ~/.local/bin/i3l ~/.dotfiles/.local/bin/
cp ~/.local/bin/scrcpy.sh ~/.dotfiles/.local/bin/
cp ~/.local/bin/teamviewer_autostart.sh ~/.dotfiles/.local/bin/
cp ~/.local/bin/toggle_bluetooth.sh ~/.dotfiles/.local/bin/
cp -r ~/.local/share/fonts ~/.dotfiles/.local/share/
cp -r ~/.local/share/applications ~/.dotfiles/.local/share/
cp ~/.local/share/uptime-record ~/.dotfiles/.local/share/
git add .
if [ -z "$1" ]; then
git commit -m "committed automatically from update.sh" -q
else
git commit -m "$1" -q
fi
git push -q
echo "Everything is now up to date! :D"