Commit 08276bde authored by SomaUlte's avatar SomaUlte Committed by GitHub

Update neofetch

parent 611c88b2
......@@ -1075,7 +1075,11 @@ get_gpu() {
;;
*"intel"*)
gpu="Intel Integrated Graphics"
if [[ $(glxinfo | grep 'OpenGL renderer string: Mesa' | sed 's/ renderer.*//') = "OpenGL" ]]; then
gpu="$(DRI_PRIME=1 glxinfo | grep 'OpenGL renderer' | sed '0,/^.*Intel/ s//Intel/' | sed 's/(R)//' | sed 's/\(\.* (\).*//')"
else
gpu="Intel Integrated Graphics"
fi
;;
*"virtualbox"*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment