-
Notifications
You must be signed in to change notification settings - Fork 2
/
update
executable file
·87 lines (55 loc) · 1.94 KB
/
update
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
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
laptop="laptop"
desktop="desktop"
if [ ! -d "$HOME/.config/polybar" ]; then
mkdir $HOME/.config/polybar
fi
if [ ! -d "$HOME/.config/spicetify/Themes/Yoo" ]; then
mkdir $HOME/.config/spicetify/Themes/Yoo
fi
if [ ! -d "$HOME/.config/rofi" ]; then
mkdir $HOME/.config/rofi
fi
echo "Configuring apps..."
sleep 0.1
cd $DOTFILES_DIR/Apps
cp -r ranger $HOME/.config/
cp -r krita/Config/krita*rc $HOME/.config/
cp -a krita/Config/KritaPywal.colors $HOME/.config/wal/templates
cp -r krita/Resources/* $HOME/.local/share/krita/
cp -r polybar/* $HOME/.config/polybar/
cd $DOTFILES_DIR/Configs
cp redshift.conf $HOME/.config/
cp compton.conf $HOME/.config/compton.conf
cp picom.conf $HOME/.config/picom.conf
# Dunst and Xresources needs to be updated, and then sent to it's place
cp dunstrc $HOME/.config/wal/templates
cp -a .Xresources $HOME/.config/wal/templates
cp -a .Xresources $HOME/.config/wal/templates
cp -a rofi.rasi $HOME/.config/wal/templates
cp $HOME/.cache/wal/dunstrc $HOME/.config/dunst/
cp $HOME/.cache/wal/.Xresources $HOME/
cp $DOTFILES_DIR/Configs/config.ini $HOME/.config/spicetify
cp -r $DOTFILES_DIR/Apps/spicetify/* $HOME/.config/spicetify/Themes/Yoo
spicetify update
echo "Configuring setup..."
sleep 0.1
cd $DOTFILES_DIR
if [ $1 == $laptop ]
then
cd $DOTFILES_DIR/Laptop
touch $HOME/.config/i3/config
rm $HOME/.config/i3/config
cat ../Configs/i3-common-config ../Configs/i3-windows ../Configs/i3-keybindings ../Configs/i3-autostart i3-laptop-config >> $HOME/.config/i3/config
cp polybar/config $HOME/.config/polybar
elif [ $1 == $desktop ]
then
cd $DOTFILES_DIR/Desktop
touch $HOME/.config/i3/config
rm $HOME/.config/i3/config
cat ../Configs/i3-common-config ../Configs/i3-windows ../Configs/i3-keybindings ../Configs/i3-autostart i3-desktop-config >> $HOME/.config/i3/config
cp polybar/config $HOME/.config/polybar
fi
echo "Updated $1, homie."
sleep 0.1
exit 0