GPU: Added support for OS X and Windows

This commit is contained in:
Dylan 2016-01-19 12:12:41 +11:00
parent 96c62b0774
commit f9f32ef28b

10
fetch
View file

@ -638,7 +638,12 @@ getgpu () {
;;
"Mac OS X")
gpu=$( \
system_profiler SPDisplaysDataType | \
awk -F': ' '/^\ *Chipset Model:/ {print $2}' | \
awk '{ printf "%s / ", $0 }'
)
gpu=${gpu//'/ $'}
;;
"BSD")
@ -654,7 +659,8 @@ getgpu () {
"Windows")
gpu=$(wmic path Win32_VideoController get caption)
gpu=$(tail -1 <<< ${gpu})
;;
esac
}