Explorar o código

neofetch: Windows multi GPI support. Closes #1462

Dylan Araps %!s(int64=5) %!d(string=hai) anos
pai
achega
241ac6c152
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      neofetch

+ 5 - 2
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")