-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_dependencies.sh
executable file
·54 lines (52 loc) · 1.93 KB
/
install_dependencies.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
mkdir -p ~/.config/
if [ -d ~/.config/rofi ]; then
echo "Rofi configs detected, backing up..."
mkdir ~/.config/rofi.old && mv ~/.config/rofi/* ~/.config/rofi.old/
cp -r ./config/rofi/* ~/.config/rofi;
else
echo "Installing rofi configs..."
mkdir ~/.config/rofi && cp -r ./config/rofi/* ~/.config/rofi;
fi
sleep 2
if [ -f ~/.config/picom.conf ]; then
echo "Picom configs detected, backing up..."
cp ~/.config/picom.conf ~/.config/picom.conf.old;
cp ./config/picom.conf ~/.config/picom.conf;
else
echo "Installing picom configs..."
cp ./config/picom.conf ~/.config/picom.conf;
fi
if [ -d ~/.config/dunst ]; then
echo "Dunst configs detected, backing up..."
mkdir ~/.config/dunst.old && mv ~/.config/dunst/* ~/.config/dunst.old/
cp -r ./config/dunst/* ~/.config/dunst;
else
echo "Installing dunst configs..."
mkdir ~/.config/dunst && cp -r ./config/dunst/* ~/.config/dunst;
fi
if [ -d ~/wallpapers ]; then
echo "Adding wallpaper to ~/wallpapers..."
cp ./wallpapers/default-wallpaper.jpg ~/wallpapers/;
else
echo "Installing wallpaper..."
mkdir ~/wallpapers && cp -r ./wallpapers/* ~/wallpapers/;
fi
if [ -d ~/.xmonad ]; then
echo "XMonad configs detected, backing up..."
mkdir ~/.xmonad.old && mv ~/.xmonad/* ~/.xmonad.old/
cp -r ./xmonad/* ~/.xmonad/;
# ln -s ./xmonad/ $HOME/.xmonad
else
echo "Installing xmonad configs..."
# ln -s ./xmonad/ $HOME/.xmonad
mkdir ~/.xmonad && cp -r ./xmonad/* ~/.xmonad;
fi
if [ -d ~/scripts ]; then
echo "~/scripts detected, backing up..."
mkdir ~/scripts.old && mv ~/scripts/* ~/scripts.old/
cp -r ./scripts/* ~/scripts;
clear
else
echo "Installing scripts..."
mkdir ~/scripts && cp -r ./scripts/* ~/scripts/;
fi