Update neofetch

This commit is contained in:
SomaUlte 2017-01-23 04:01:50 -05:00 committed by GitHub
parent 611c88b29c
commit 08276bde5e
1 changed files with 5 additions and 1 deletions

View File

@ -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"*)