From 0ef25b5f804a14777b38286c41bdb1bace883215 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 29 Aug 2017 09:25:01 +1000 Subject: [PATCH] gpu_driver: Show multiple drivers if multiple gpus found --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 638f161d..a953a60b 100755 --- a/neofetch +++ b/neofetch @@ -2261,7 +2261,8 @@ get_locale() { get_gpu_driver() { case "$os" in "Linux") - gpu_driver="$(lspci -nnk | awk -F ': ' '/VGA/{nr[NR+2]}; NR in nr {print $2}')" + gpu_driver="$(lspci -nnk | awk -F ': ' '/Display|3D|VGA/{nr[NR+2]}; NR in nr {printf $2 ", "}')" + gpu_driver="${gpu_driver%, }" ;; esac }