From 241ac6c1525549323a8782e619237b65bb9eede3 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 22 May 2020 10:37:01 +0300 Subject: [PATCH] neofetch: Windows multi GPI support. Closes #1462 --- neofetch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 880a9916..5cda684f 100755 --- a/neofetch +++ b/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")