blob: 255545757f4e65dfa13d431163e3ad488e9748ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
case "$@" in
""|"--help"|"-help"|"-h")
echo "
This script only launches the command you write after.
Example:
prime glxinfo | grep OpenGL
It should show you video driver in use."
exit 0
esac
__NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER="NVIDIA-G0" __GLX_VENDOR_LIBRARY_NAME="nvidia" __VK_LAYER_NV_optimus="NVIDIA_only" exec "$@"
|