This commit is contained in:
2025-05-03 09:17:28 +02:00
4 changed files with 328 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ if [ "$HOSTNAME" == "SIMONBOX" ]; then
DESKTOP_BASE="yes"
NVIDIA_1080_GPU="yes"
TERMINAL="yes"
KDE="yes"
HYPERLAND="yes"
fi
echo -e ' \e[H\e[2J
@@ -134,6 +134,7 @@ ln -sf ~/linuxbox/gitconfig ~/.gitconfig
if [ "$NVIDIA_GPU" == "yes" ] || [ "$NVIDIA_1080_GPU" == "yes" ]; then
# Install nvidia drivers
printf -- '\033[33m Installing NVIDIA drivers\n\033[37m'
if pacman -Qs nvidia-open-dkms >/dev/null; then
NEW_KERNEL="no"
elif pacman -Qs nvidia-dkms >/dev/null; then
@@ -141,12 +142,19 @@ if [ "$NVIDIA_GPU" == "yes" ] || [ "$NVIDIA_1080_GPU" == "yes" ]; then
else
NEW_KERNEL="yes"
fi
if [ "$NVIDIA_GPU" == "yes" ]; then
sudo pacman --noconfirm --needed -S nvidia-open-dkms
sudo pacman --noconfirm --needed -S nvidia-open
elif [ "$NVIDIA_1080_GPU" == "yes" ]; then
sudo pacman --noconfirm --needed -S nvidia-dkms
sudo pacman --noconfirm --needed -S nvidia
fi
sudo pacman --noconfirm --needed -S nvidia-utils lib32-nvidia-utils nvidia-settings opencl-nvidia cuda
sudo pacman --noconfirm --needed -S nvidia-utils nvidia-settings opencl-nvidia cuda
if [ "$GAME" == "yes" ]; then
sudo pacman --noconfirm --needed -S lib32-nvidia-utils
fi
if [ "$NEW_KERNEL" == "yes" ]; then
printf -- '\033[33m \n\n***** Nvidia driver updated kernel! Please reboot and run update once more! *****\n\n\033[37m'
exit
@@ -170,6 +178,7 @@ else
cd ~
if [ -d ~/yay-bin ]; then rm -rf ~/yay-bin; fi
fi
# Update all Flatpak packages
printf -- '\033[33m Updating Flatpak packages\n\033[37m'
if pacman -Qs flatpak >/dev/null; then
@@ -392,9 +401,9 @@ fi
# Install game utility
if [ "$GAME" == "yes" ]; then
printf -- '\033[33m Installing game utilities\n\033[37m'
sudo pacman -S --noconfirm --needed wine winetricks wine-mono wine-gecko
sudo pacman -S --noconfirm --needed steam
yay --noconfirm -S --needed --aur protonup-qt protontricks
sudo pacman -S --noconfirm --needed wine-staging winetricks wine-mono wine-gecko
yay --noconfirm -S --needed --aur lug-helper
yay --noconfirm -S --needed --aur opentrack-git
yay --noconfirm -S --needed --aur openmpi
@@ -408,10 +417,10 @@ if [ "$VR" == "yes" ]; then
sudo pacman -S --noconfirm --needed bc git-lfs cli11 glib2-devel nlohmann-json
# yay --noconfirm -S --needed --aur libsurvive-git
yay --noconfirm -S --needed --aur monado-git
yay --noconfirm -S --needed --aur monado-vulkan-layers-git
yay --noconfirm -S --needed --aur envision-xr-git
yay --noconfirm -S --needed --aur alvr-nvidia
yay --noconfirm -S --needed --aur wlx-overlay-s-git
yay --noconfirm -S --needed --aur monado-vulkan-layers-git
yay --noconfirm -S --needed --aur envision-xr-git
fi
printf -- '\033[32m \n\n***** Update complete! Please reboot. *****\n\n\033[37m'