Created
January 29, 2016 19:52
-
-
Save NeoTheFox/b219f9b222975b8bc18d to your computer and use it in GitHub Desktop.
This file contains 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