Repository navigation
Expand file tree
/
Copy pathautoinstall.sh
More file actions
executable file
·160 lines (148 loc) · 4.74 KB
/
Copy pathautoinstall.sh
File metadata and controls
executable file
·160 lines (148 loc) · 4.74 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#!/usr/bin/bash
USER=$(whoami)
HYPR="$HOME/.config/hypr"
packages=(
btop
fortune-mod
fastfetch
nautilus
wl-clipboard
hyprland
cliphist
pipewire
bluez
zsh
zsh-autosuggestions
zsh-syntax-highlighting
sddm
kitty
nwg-look
ags-hyprpanel-git
eww
hyprpaper
hyprsunset
hyprwave
rofi-git
hyprpicker
hyprshot
zsh-theme-powerlevel10k
nano
swww
rofi-bluetooth-git
hyprdynamicmonitors-bin
qt5-multimedia
qt5-graphicaleffects
qt5-quickcontrols2
qt5-declarative
qt6-svg
gnome-disk-utility
qt6-virtualkeyboard
qt6-multimedia-ffmpeg
wlogout
)
utils=(
evince
sushi
vlc
gnome-disk-utility
)
apps=(
vscodium-bin
obs-studio
localsend-bin
gimp
libreoffice-fresh
spotify-launcher
obsidian
)
echo "
██╗ ██╗██╗ ██╗██████╗ ██████╗ ███████╗███████╗ ██████╗████████╗
██║ ██║╚██╗ ██╔╝██╔══██╗██╔══██╗██╔════╝██╔════╝██╔════╝╚══██╔══╝
███████║ ╚████╔╝ ██████╔╝██████╔╝█████╗ █████╗ ██║ ██║
██╔══██║ ╚██╔╝ ██╔═══╝ ██╔══██╗██╔══╝ ██╔══╝ ██║ ██║
██║ ██║ ██║ ██║ ██║ ██║██║ ███████╗╚██████╗ ██║
╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚══════╝ ╚═════╝ ╚═╝
"
echo -e "\e[33mWelcome to Hyprfect installtion script! \e[0mby \e[32mTheLinuxGuy\e[0m \n"
echo -e "\e[34mIt is recommended to use this script on a minimal installation of arch-based distros\e[0m \n \n"
if [ -f /etc/os-release ]; then
. /etc/os-release
OS=$ID
fi
if ! [ "$OS" = "arch" ] || [ "$OS" = "cachyos" ]; then
echo -e "\e[31mYour OS is not supported by this installation script.\e[0m"
echo "Exiting..." && sleep 1;
exit 1;
fi
if [ "$USER" = "root" ]; then
echo -e "\e[31mInstalling as root user is not recommended\e[0m"
echo -e "Please run this installation script as a normal user!"
echo "Exiting.." && sleep 1;
exit 1;
fi
read -e -p $'Would you like to proceed with the installtion? (\e[32my\e[0m / \e[31mn\e[0m): ' install
if [ "$install" = "y" ]; then
mkdir hyprtmp
cd hyprtmp
sudo pacman -S --needed --noconfirm base-devel;
git clone https://aur.archlinux.org/yay.git;
cd yay;
echo -e "Installing \e[32mYay Package Manager\e[0m" && makepkg -si || {
echo -e "Failed to Install \e[31mYay Package Manager\e[0m";
echo -e "Yay is a required package for this setup, please try the installation again";
echo -e "Exiting Script...";
sleep 5;
exit 1;
}
cd ../../
for pkg in "${packages[@]}"; do
echo -e "Installing \e[32m$pkg...\e[0m"
yay -S --noconfirm --needed "$pkg" &> /dev/null || {
echo -e "Failed to install \e[31m$pkg\e[0m, continuing..."
}
done
echo 'source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
chsh -s /bin/zsh anonymous
if [ -d "$HYPR" ]; then
mkdir hyprbackup
cp -r $HOME/config/* ./hyprbackup
fi
cp -r ./.config/* ~/.config/
cp -r ./.* ~/
sudo cp -r ./sddm /usr/share/
sudo cp ./fonts/* /usr/share/fonts/
sudo fc-cache -vf
sudo systemctl enable --now bluetooth
sudo cp ./sddm.conf /etc/sddm.conf
sudo cp -r ./wlogout /etc/
sudo chmod +x ./binaries/*
sudo cp ./binaries/* /usr/bin/
hyprwave-toggle set-theme octane
read -e -p $'do you want to install recommended utilities? (\e[32my\e[0m / \e[31mn\e[0m): ' utilities
if [ "$utilities" = "y" ] || [ "$utilities" = "yes" ]; then
for util in "${utils[@]}"; do
echo -e "Installing \e[32m$util...\e[0m"
yay -S --noconfirm --needed "$util" &> /dev/null || {
echo "Failed to install $util, continuing..."
}
done
fi
read -e -p $'Do you want to install recommended apps? (\e[32my\e[0m / \e[31mn\e[0m): ' applications
if [ "$applications" = "y" ] || [ "$applications" = "yes" ]; then
for app in "${apps[@]}"; do
echo -e "Installing \e[32m$app...\e[0m"
yay -S --noconfirm --needed "$app" &> /dev/null || {
echo "Failed to install $app, continuing..."
}
done
fi
sudo rm -rf hyprtmp
# read -e -p $'do you want to install nvidia/amd graphics drivers? (\e[32my\e[0m / \e[31mn\e[0m) ' graphics
# if [ "$graphics" = "y" ]; then
# sudo pacman -S nvidia nvidia-utils nvidia-settings
# fi
sudo systemctl enable sddm
printf "\e[32mSetup Completed!\e[0m \n \e[33mRebooting...\e[0m"; sleep 5; reboot;
else
echo "Exiting..."
fi