-
-
Save step21/fbd6d188ab2d1cb259cfe11fcae148bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
xconfig="/etc/X11/xorg.conf" | |
if [ -e "$xconfig" ] | |
then | |
echo "Nvidia xconfig detected" | |
echo "Switching to mesa..." | |
sudo pacman -S lib32-mesa-libgl mesa-libgl | |
sudo rm $xconfig | |
else | |
echo "No Nvidia xconfig detected" | |
echo "Switching to Nvidia.." | |
sudo nvidia-xconfig | |
sudo pacman -S lib32-nvidia-libgl nvidia-libgl | |
fi | |
echo "Switched" | |
sudo systemctl restart lightdm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment