-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·91 lines (69 loc) · 1.99 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/bin/bash
ROOT_DIR=$(dirname "$(realpath "$0")")
SCRIPT_DIR="${ROOT_DIR}/scripts"
PACKAGES_DIR="${ROOT_DIR}/packages"
source "${SCRIPT_DIR}/library/color.sh"
source "${SCRIPT_DIR}/library/dialog.sh"
source "${SCRIPT_DIR}/library/library.sh"
source "${SCRIPT_DIR}/library/package_installer.sh"
read -p "${CAT} Would you like to Use Preset Settings? (y/n): " use_preset
if [[ $use_preset = [Yy] ]]; then
source ./preset.sh
fi
echo "${INFO} Updating Pacman...."
sudo pacman -Sy
install_packages_from_list "common"
echo
ask_yes_no "-Do you have any nvidia gpu in your system?" nvidia
echo
ask_yes_no "-Install Snapper?" snapper
echo
ask_yes_no "-Download pre-configured Hyprland dotfiles?" dots
echo
ask_yes_no "-Install developers tools?" developer
echo
if [ "$ui" == "Y" ]; then
install_packages_from_list "ui"
fi
if [ "$nvidia" == "Y" ]; then
execute_script "nvidia.sh"
fi
if [ "$ui" == "Y" ]; then
execute_script "ly.sh"
fi
if [ "$ui" == "Y" ]; then
execute_script "gtk.sh"
fi
execute_script "zsh.sh"
if [ "$snapper" == "Y" ] && [ "$ui" == "Y" ]; then
execute_script "snapper.sh"
fi
if [ "$ui" == "Y" ]; then
execute_script "system_enable.sh"
fi
if [ "$dots" == "Y" ]; then
execute_script "dotfiles.sh"
fi
if [ "$developer" == "Y" ]; then
execute_script "developer.sh"
fi
printf "\n${OK} Installation Completed.\n"
printf "\n"
sleep 2
if [ "$snapper" == "Y" ]; then
read -p "${CAT} Reminder: Run btrfs-assistant to configure snapper"
fi
if [ "$developer" == "Y" ]; then
read -p "${CAT} Reminder: Run 'vfox use -g' after reboot"
fi
# Remove EndeavourOS ugly Grub theme
if grep -qi "EndeavourOS" /etc/os-release; then
echo "${INFO} EndeavourOS detected, removing GRUB theme"
sudo cp /etc/default/grub /etc/default/grub.bak
sudo sed -i 's|.*GRUB_BACKGROUND=.*|#GRUB_BACKGROUND=|' /etc/default/grub
sudo grub-mkconfig -o /boot/grub/grub.cfg
fi
read -rp "${CAT} Would you like to reboot now? (y/n): " HYP
if [[ "$HYP" =~ ^[Yy]$ ]]; then
systemctl reboot
fi