Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (9 sloc) 262 Bytes
#!/bin/bash
if glxinfo | grep "OpenGL renderer string" | grep -q 'GeForce';
then
sudo prime-select intel;
echo "Intel graphics enabled, logout to complete";
else
sudo prime-select nvidia;
echo "Nvidia graphics enabled, logout to complete";
fi