diff --git a/3progs.sh b/3progs.sh index 52b4819..c8264f9 100755 --- a/3progs.sh +++ b/3progs.sh @@ -13,6 +13,10 @@ sudo chown -R $USER:$GROUP /home/$USER/ cp -a rp-programscript.desktop /home/$USER/.local/share/applications/ echo "Exec=/home/$USER/.progs/3progs.sh" >> /home/$USER/.local/share/applications/rp-programscript.desktop +# Steam GPU Grep from Lordify + nVidia=$(lspci -P | grep "NVIDIA" -c) + + # Zenity ablak megjelenítése user_choice=$(zenity --list --checklist --width='1000' --height='1000' \ --title="APP Telepítő Script base by Airman & RAVE (Magyarosította balage79)" \ @@ -102,7 +106,11 @@ if [[ $user_choice = *"Steam Launcher"* ]]; then echo --------------------------------------------- echo Installing ${bold}${yellow}Steam Launcher${normal} - sudo pacman -S steam --noconfirm + if [[ $nVidia -gt 0 ]]; then + sudo pacman -S steam nvidia-utils lib32-nvidia-utils --noconfirm + else + sudo pacman -S steam amdvlk lib32-amdvlk --noconfirm + fi sudo chmod +x update-proton-ge ./update-proton-ge diff --git a/rp-os-ae.sh b/rp-os-ae.sh index 1def0cc..277268e 100644 --- a/rp-os-ae.sh +++ b/rp-os-ae.sh @@ -10,6 +10,7 @@ bold=$(tput bold) # ${bold} normal=$(tput sgr0) # ${normal} yellow=$(tput setaf 3) # ${yellow} + # Deleting password for the script to run uninterrapted echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99-$USER