neofetch: Windows multi GPI support. Closes #1462

This commit is contained in:
Dylan Araps 2020-05-22 10:37:01 +03:00
parent 5e377cd561
commit 241ac6c152
No known key found for this signature in database
GPG key ID: 46D62DD9F1DE636E

View file

@ -2472,8 +2472,11 @@ get_gpu() {
;;
"Windows")
gpu="$(wmic path Win32_VideoController get caption)"
gpu="${gpu//Caption}"
while read -r line; do
prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")"
done < <(wmic path Win32_VideoController get caption)
gpu=${gpu//Caption}
;;
"Haiku")