windows: Fix gpu output
This commit is contained in:
parent
c511bcbcef
commit
71d8914ec7
7
neofetch
7
neofetch
|
@ -2517,10 +2517,13 @@ get_gpu() {
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
|
[[ $win_gpu ]] || {
|
||||||
|
win_gpu=1
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")"
|
prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")"
|
||||||
done < <(wmic path Win32_VideoController get caption)
|
done < <(wmic path Win32_VideoController get caption)
|
||||||
|
|
||||||
gpu=${gpu//Caption}
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Haiku")
|
"Haiku")
|
||||||
|
|
Reference in New Issue