-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·72 lines (61 loc) · 1.8 KB
/
install.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
#!/bin/sh
# Credits to HoNamDuong
## Directories ----------------------------
DIR=$(pwd)
## Directories ----------------------------
# Reset
Reset='\033[0m' # Text Reset
# Regular Colors
Black='\033[0;30m' # Black
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
Blue='\033[0;34m' # Blue
Purple='\033[0;35m' # Purple
Cyan='\033[0;36m' # Cyan
White='\033[0;37m' # White
# Bold
BBlack='\033[1;30m' # Black
BRed='\033[1;31m' # Red
BGreen='\033[1;32m' # Green
BYellow='\033[1;33m' # Yellow
BBlue='\033[1;34m' # Blue
BPurple='\033[1;35m' # Purple
BCyan='\033[1;36m' # Cyan
BWhite='\033[1;37m' # White
clear
while :
do
echo " "
echo -e "${Green} [1] Install Configuration? ${Reset}"
echo -e "${Yellow} [0] Quit ${Reset}"
echo
read -p " Enter your choice: " choice
case $choice in
0)
break
;;
1)
#configs
ln -sfvr $DIR/configs/* ~/.config/
#icons, themes and wallpapers
mkdir -p ~/.icons/catppuccin ~/.themes/catppuccin/ /wallpapers
ln -sfvr $DIR/theme/icons/ ~/.icons/catppuccin/
ln -sfvr $DIR/theme/GTK_theme ~/.themes/catppuccin/
ln -sfvr $DIR/wallpapers /wallpapers
chmod -x /wallpapers
#Load all the configs
dconf load $DIR/configs < all-dconf.dconf
#GRUB theme
ln -sfvr $DIR/theme/GRUB_theme/ /usr/share/grub/themes
grep "GRUB_THEME=" /etc/default/grub 2>&1 >/dev/null && sed -i '/GRUB_THEME=/d' /etc/default/grub
echo "GRUB_THEME=\"${THEME_DIR}/${THEME_NAME}/theme.txt\"" >> /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
#installing neovim
sh $DIR/configs/nvim/install.sh
;;
*)
echo "Sorry, choice understand"
;;
esac
done