mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
neofetch: Windows multi GPI support. Closes #1462
This commit is contained in:
7
neofetch
7
neofetch
@@ -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")
|
||||
|
Reference in New Issue
Block a user