Update 1-setup.sh

This commit is contained in:
XTale!Frisk 2022-01-21 06:32:53 +00:00 committed by GitHub
parent 5721dbc578
commit e6bb136d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -101,8 +101,9 @@ echo -ne "
# Graphics Drivers find and install # Graphics Drivers find and install
gpu_type=$(lspci) gpu_type=$(lspci)
if grep -E "NVIDIA|GeForce" <<< ${gpu_type}; then if grep -E "NVIDIA|GeForce" <<< ${gpu_type}; then
pacman -S nvidia --noconfirm --needed pacman -S nvidia lib32-nvidia-utils lib32-vulkan-icd-loader --noconfirm --needed
nvidia-xconfig nvidia-xconfig
echo "VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json" >> /etc/environment
elif lspci | grep 'VGA' | grep -E "Radeon|AMD"; then elif lspci | grep 'VGA' | grep -E "Radeon|AMD"; then
pacman -S xf86-video-amdgpu --noconfirm --needed pacman -S xf86-video-amdgpu --noconfirm --needed
elif grep -E "Integrated Graphics Controller" <<< ${gpu_type}; then elif grep -E "Integrated Graphics Controller" <<< ${gpu_type}; then