mirror of
https://github.com/xsghetti/script.git
synced 2025-01-23 01:26:08 -05:00
install.sh
This commit is contained in:
parent
9c31adbf4f
commit
44009da3b7
1 changed files with 22 additions and 39 deletions
61
install.sh
61
install.sh
|
@ -4,84 +4,67 @@ cat << "EOF"
|
||||||
██░ ██▓██ ██▓ ██▓███ ██▀███ ▄████▄ ██▀███ █ ██ ▒██ ██▒
|
██░ ██▓██ ██▓ ██▓███ ██▀███ ▄████▄ ██▀███ █ ██ ▒██ ██▒
|
||||||
▓██░ ██▒▒██ ██▒▓██░ ██▒▓██ ▒ ██▒▒██▀ ▀█ ▓██ ▒ ██▒ ██ ▓██▒▒▒ █ █ ▒░
|
▓██░ ██▒▒██ ██▒▓██░ ██▒▓██ ▒ ██▒▒██▀ ▀█ ▓██ ▒ ██▒ ██ ▓██▒▒▒ █ █ ▒░
|
||||||
▒██▀▀██░ ▒██ ██░▓██░ ██▓▒▓██ ░▄█ ▒▒▓█ ▄ ▓██ ░▄█ ▒▓██ ▒██░░░ █ ░
|
▒██▀▀██░ ▒██ ██░▓██░ ██▓▒▓██ ░▄█ ▒▒▓█ ▄ ▓██ ░▄█ ▒▓██ ▒██░░░ █ ░
|
||||||
░▓█ ░██ ░ ▐██▓░▒██▄█▓▒ ▒▒██▀▀█▄ ▒▓▓▄ ▄██▒▒██▀▀█▄ ▓▓█ ░██░ ░ █ █ ▒
|
░▓█ ░██ ░ ▐██▓░▒██▄█▓▒ ▒▒██▀▀█▄ ▒▓▓▄ ▄██▒▒██▀▀█▄ ▓▓█ ░██░ ░ █ █ ▒
|
||||||
░▓█▒░██▓ ░ ██▒▓░▒██▒ ░ ░░██▓ ▒██▒▒ ▓███▀ ░░██▓ ▒██▒▒▒█████▓ ▒██▒ ▒██▒
|
░▓█▒░██▓ ░ ██▒▓░▒██▒ ░ ░░██▓ ▒██▒▒ ▓███▀ ░░██▓ ▒██▒▒▒█████▓ ▒██▒ ▒██▒
|
||||||
▒ ░░▒░▒ ██▒▒▒ ▒▓▒░ ░ ░░ ▒▓ ░▒▓░░ ░▒ ▒ ░░ ▒▓ ░▒▓░░▒▓▒ ▒ ▒ ▒▒ ░ ░▓ ░
|
▒ ░░▒░▒ ██▒▒▒ ▒▓▒░ ░ ░░ ▒▓ ░▒▓░░ ░▒ ▒ ░░ ▒▓ ░▒▓░░▒▓▒ ▒ ▒ ▒▒ ░ ░▓ ░
|
||||||
▒ ░▒░ ░▓██ ░▒░ ░▒ ░ ░▒ ░ ▒░ ░ ▒ ░▒ ░ ▒░░░▒░ ░ ░ ░░ ░▒ ░
|
▒ ░▒░ ░▓██ ░▒░ ░▒ ░ ░▒ ░ ▒░ ░ ▒ ░▒ ░ ▒░░░▒░ ░ ░ ░░ ░▒ ░
|
||||||
░ ░░ ░▒ ▒ ░░ ░░ ░░ ░ ░ ░░ ░ ░░░ ░ ░ ░ ░
|
░ ░░ ░▒ ▒ ░░ ░░ ░░ ░ ░ ░░ ░ ░░░ ░ ░ ░ ░
|
||||||
░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░
|
░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░
|
||||||
░ ░ ░
|
░ ░ ░
|
||||||
The Future Is Now
|
The Future Is Now
|
||||||
©xSghetti 2024
|
©xSghetti 2024
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
EOF
|
EOF
|
||||||
echo ":: WARNING! This script is meant for Nvidia users only! It installs the nvidia-dkms and nvidia-utils packages"
|
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
|
read -p "Do you want to continue? (y/n) " answer
|
||||||
|
|
||||||
case $answer in
|
case $answer in
|
||||||
[Yy]* )
|
[Yy]* )
|
||||||
echo ":: Install Continuing..."
|
echo ":: Install Continuing..."
|
||||||
#Copy mkinitcpio.conf
|
#Copy mkinitcpio.conf
|
||||||
sudo cp -r ~/script/src/mkinitcpio.conf /etc/mkinitcpio.conf
|
sudo cp -r ~/script/src/mkinitcpio.conf /etc/mkinitcpio.conf
|
||||||
|
|
||||||
#Make /etc/modprobe.d/nvidia.conf
|
#Make /etc/modprobe.d/nvidia.conf
|
||||||
sudo touch /etc/modprobe.d/nvidia.conf
|
sudo touch /etc/modprobe.d/nvidia.conf
|
||||||
sudo cp -r ~/script/src/nvidia.conf /etc/modprobe.d/nvidia.conf
|
sudo cp -r ~/script/src/nvidia.conf /etc/modprobe.d/nvidia.conf
|
||||||
|
|
||||||
sudo mkinitcpio -P
|
sudo mkinitcpio -P
|
||||||
|
|
||||||
#Download and Install Yay
|
#Download and Install Yay
|
||||||
pacman -S --needed git base-devel
|
pacman -S --needed git base-devel
|
||||||
git clone https://aur.archlinux.org/yay-bin.git
|
git clone https://aur.archlinux.org/yay-bin.git
|
||||||
cd yay-bin
|
cd yay-bin
|
||||||
makepkg -si
|
makepkg -si
|
||||||
|
|
||||||
#Download and Install packages
|
#Download and Install packages
|
||||||
sudo pacman -S --needed - < ~/script/src/pacman.txt
|
sudo pacman -S --needed - < ~/script/src/pacman.txt
|
||||||
yay -S --needed - < ~/script/src/yay.txt
|
yay -S --needed - < ~/script/src/yay.txt
|
||||||
|
|
||||||
#Clones Hyprcrux Repo and copies them to their correct locations.
|
#Clones Hyprcrux Repo and copies them to their correct locations.
|
||||||
cd ~/script/
|
cd ~/script/
|
||||||
./clone.sh
|
./clone.sh
|
||||||
|
|
||||||
|
|
||||||
echo ":: Preparing to Install HyprPM Plugins..."
|
echo ":: Preparing to Install HyprPM Plugins..."
|
||||||
sleep 5
|
sleep 5
|
||||||
~/script/hyprpm.sh
|
~/script/hyprpm.sh
|
||||||
|
|
||||||
echo ":: Preparing to Install Grub Theme"
|
echo ":: Preparing to Install Grub Theme"
|
||||||
~/script/grub.sh
|
~/script/grub.sh
|
||||||
|
|
||||||
echo ":: Preparing to Install SDDM Theme"
|
echo ":: Preparing to Install SDDM Theme"
|
||||||
~/script/sddm.sh
|
~/script/sddm.sh
|
||||||
|
|
||||||
|
|
||||||
cat << "EOF"
|
|
||||||
You have succesfully installed
|
|
||||||
-----------------------------------------------------------------------
|
|
||||||
██░ ██▓██ ██▓ ██▓███ ██▀███ ▄████▄ ██▀███ █ ██ ▒██ ██▒
|
|
||||||
▓██░ ██▒▒██ ██▒▓██░ ██▒▓██ ▒ ██▒▒██▀ ▀█ ▓██ ▒ ██▒ ██ ▓██▒▒▒ █ █ ▒░
|
|
||||||
▒██▀▀██░ ▒██ ██░▓██░ ██▓▒▓██ ░▄█ ▒▒▓█ ▄ ▓██ ░▄█ ▒▓██ ▒██░░░ █ ░
|
|
||||||
░▓█ ░██ ░ ▐██▓░▒██▄█▓▒ ▒▒██▀▀█▄ ▒▓▓▄ ▄██▒▒██▀▀█▄ ▓▓█ ░██░ ░ █ █ ▒
|
|
||||||
░▓█▒░██▓ ░ ██▒▓░▒██▒ ░ ░░██▓ ▒██▒▒ ▓███▀ ░░██▓ ▒██▒▒▒█████▓ ▒██▒ ▒██▒
|
|
||||||
▒ ░░▒░▒ ██▒▒▒ ▒▓▒░ ░ ░░ ▒▓ ░▒▓░░ ░▒ ▒ ░░ ▒▓ ░▒▓░░▒▓▒ ▒ ▒ ▒▒ ░ ░▓ ░
|
|
||||||
▒ ░▒░ ░▓██ ░▒░ ░▒ ░ ░▒ ░ ▒░ ░ ▒ ░▒ ░ ▒░░░▒░ ░ ░ ░░ ░▒ ░
|
|
||||||
░ ░░ ░▒ ▒ ░░ ░░ ░░ ░ ░ ░░ ░ ░░░ ░ ░ ░ ░
|
|
||||||
░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░
|
|
||||||
░ ░ ░
|
|
||||||
-----------------------------------------------------------------------
|
|
||||||
Enjoy :)
|
|
||||||
EOF
|
|
||||||
echo ":: Rebooting"
|
echo ":: Rebooting"
|
||||||
sleep 15
|
sleep 15
|
||||||
sudo reboot
|
sudo reboot
|
||||||
;;
|
|
||||||
[Nn]* )
|
|
||||||
echo ":: Exiting..."
|
|
||||||
;;
|
;;
|
||||||
* )
|
[Nn]* )
|
||||||
echo "Invalid input. please answer y or n."
|
echo ":: Exiting..."
|
||||||
exit 1
|
;;
|
||||||
|
* )
|
||||||
|
echo "Invalid input. please answer y or n."
|
||||||
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue