-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·69 lines (50 loc) · 1.33 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
#!/bin/bash
source scripts/library/header.sh
source scripts/library/library.sh
source scripts/library/dialog.sh
script_directory=scripts
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
execute_script "installer.sh"
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 [ "$nvidia" == "Y" ]; then
execute_script "nvidia.sh"
fi
execute_script "ly.sh"
execute_script "gtk.sh"
execute_script "zsh.sh"
if [ "$snapper" == "Y" ]; then
execute_script "snapper.sh"
fi
execute_script "system_enable.sh"
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 "${NOTE} Reminder: Run btrfs-assistant to configure snapper"
fi
if [ "$developer" == "Y" ]; then
read -p "${NOTE} Reminder: Run 'vfox use -g' after reboot"
fi
read -rp "${CAT} Would you like to reboot now? (y/n): " HYP
if [[ "$HYP" =~ ^[Yy]$ ]]; then
systemctl reboot
fi