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