gpu_driver: Show multiple drivers if multiple gpus found
This commit is contained in:
parent
7e94fec6fc
commit
0ef25b5f80
1 changed files with 2 additions and 1 deletions
3
neofetch
3
neofetch
|
@ -2261,7 +2261,8 @@ get_locale() {
|
||||||
get_gpu_driver() {
|
get_gpu_driver() {
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux")
|
"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
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue