GPU: Added support for OS X and Windows
This commit is contained in:
parent
96c62b0774
commit
f9f32ef28b
1 changed files with 8 additions and 2 deletions
10
fetch
10
fetch
|
@ -638,7 +638,12 @@ getgpu () {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
|
gpu=$( \
|
||||||
|
system_profiler SPDisplaysDataType | \
|
||||||
|
awk -F': ' '/^\ *Chipset Model:/ {print $2}' | \
|
||||||
|
awk '{ printf "%s / ", $0 }'
|
||||||
|
)
|
||||||
|
gpu=${gpu//'/ $'}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"BSD")
|
"BSD")
|
||||||
|
@ -654,7 +659,8 @@ getgpu () {
|
||||||
|
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
|
gpu=$(wmic path Win32_VideoController get caption)
|
||||||
|
gpu=$(tail -1 <<< ${gpu})
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue