mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-04-24 03:00:16 -04:00
Adding in support for GPU detection on OS X. Tested by @spaghetti2514 and Hu6.
This commit is contained in:
@@ -738,6 +738,9 @@ detectgpu () {
|
||||
gpu="${gpu:1}"
|
||||
gpu_info=$(echo "$gpu_info" | grep "OpenGL vendor string")
|
||||
fi
|
||||
if [[ "${distro}" == "Mac OS X" ]]; then
|
||||
gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {print $2}')
|
||||
fi
|
||||
|
||||
if [ -n "$gpu" ];then
|
||||
if [ $(echo "$gpu_info" | grep -i nvidia | wc -l) -gt 0 ];then
|
||||
|
||||
Reference in New Issue
Block a user