script/install.sh

74 lines
3.2 KiB
Bash
Raw Normal View History

2024-07-16 21:25:15 -04:00
#/bin/bash
cat << "EOF"
-----------------------------------------------------------------------
██░ ██▓██ ██▓ ██▓███ ██▀███ ▄████▄ ██▀███ █ ██ ▒██ ██▒
▓██░ ██▒▒██ ██▒▓██░ ██▒▓██ ▒ ██▒▒██▀ ▀█ ▓██ ▒ ██▒ ██ ▓██▒▒▒ █ █ ▒░
▒██▀▀██░ ▒██ ██░▓██░ ██▓▒▓██ ░▄█ ▒▒▓█ ▄ ▓██ ░▄█ ▒▓██ ▒██░░░ █ ░
2024-07-17 00:51:56 -04:00
░▓█ ░██ ░ ▐██▓░▒██▄█▓▒ ▒▒██▀▀█▄ ▒▓▓▄ ▄██▒▒██▀▀█▄ ▓▓█ ░██░ ░ █ █ ▒
2024-07-16 21:25:15 -04:00
░▓█▒░██▓ ░ ██▒▓░▒██▒ ░ ░░██▓ ▒██▒▒ ▓███▀ ░░██▓ ▒██▒▒▒█████▓ ▒██▒ ▒██▒
▒ ░░▒░▒ ██▒▒▒ ▒▓▒░ ░ ░░ ▒▓ ░▒▓░░ ░▒ ▒ ░░ ▒▓ ░▒▓░░▒▓▒ ▒ ▒ ▒▒ ░ ░▓ ░
▒ ░▒░ ░▓██ ░▒░ ░▒ ░ ░▒ ░ ▒░ ░ ▒ ░▒ ░ ▒░░░▒░ ░ ░ ░░ ░▒ ░
2024-07-17 00:51:56 -04:00
░ ░░ ░▒ ▒ ░░ ░░ ░░ ░ ░ ░░ ░ ░░░ ░ ░ ░ ░
░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░
░ ░ ░
2024-07-16 21:25:15 -04:00
The Future Is Now
2024-07-17 00:51:56 -04:00
©xSghetti 2024
2024-07-16 21:25:15 -04:00
-----------------------------------------------------------------------
EOF
echo ":: WARNING! This script is meant for Nvidia users only! It installs the nvidia-dkms and nvidia-utils packages"
read -p "Do you want to continue? (y/n) " answer
2024-07-16 18:21:56 -04:00
2024-07-16 21:25:15 -04:00
case $answer in
2024-07-17 00:51:56 -04:00
[Yy]* )
echo ":: Install Continuing..."
2024-07-16 21:25:15 -04:00
#Copy mkinitcpio.conf
2024-07-17 00:22:59 -04:00
sudo cp -r ~/script/src/mkinitcpio.conf /etc/mkinitcpio.conf
2024-07-17 00:51:56 -04:00
2024-07-16 21:25:15 -04:00
#Make /etc/modprobe.d/nvidia.conf
sudo touch /etc/modprobe.d/nvidia.conf
2024-07-17 00:22:59 -04:00
sudo cp -r ~/script/src/nvidia.conf /etc/modprobe.d/nvidia.conf
2024-07-17 00:51:56 -04:00
2024-07-16 21:25:15 -04:00
sudo mkinitcpio -P
2024-07-17 00:51:56 -04:00
2024-07-16 21:25:15 -04:00
#Download and Install Yay
pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
2024-07-17 00:51:56 -04:00
2024-07-16 21:25:15 -04:00
#Download and Install packages
2024-07-17 00:22:59 -04:00
sudo pacman -S --needed - < ~/script/src/pacman.txt
yay -S --needed - < ~/script/src/yay.txt
2024-07-17 00:51:56 -04:00
2024-07-16 21:25:15 -04:00
#Clones Hyprcrux Repo and copies them to their correct locations.
cd ~/script/
./clone.sh
2024-07-17 00:51:56 -04:00
2024-07-17 00:31:26 -04:00
2024-08-04 13:57:23 -04:00
#echo ":: Preparing to Install HyprPM Plugins..."
#sleep 5
#~/script/hyprpm.sh
2024-07-17 00:51:56 -04:00
2024-08-04 13:57:23 -04:00
echo ":: Preparing to Restore ZSH"
~/script/zsh.sh
2024-07-17 00:31:26 -04:00
echo ":: Preparing to Install Grub Theme"
~/script/grub.sh
2024-07-17 00:51:56 -04:00
2024-07-17 00:31:26 -04:00
echo ":: Preparing to Install SDDM Theme"
~/script/sddm.sh
2024-07-17 00:51:56 -04:00
2024-07-17 00:31:26 -04:00
echo ":: Rebooting"
sleep 15
2024-08-04 13:59:21 -04:00
sudo systemctl enable sddm && sudo systemctl start sddm
2024-07-16 21:25:15 -04:00
;;
2024-07-17 00:51:56 -04:00
[Nn]* )
echo ":: Exiting..."
;;
* )
echo "Invalid input. please answer y or n."
exit 1
2024-07-16 21:25:15 -04:00
;;
esac
2024-07-16 23:17:56 -04:00