windows: Fix gpu output
This commit is contained in:
parent
c511bcbcef
commit
71d8914ec7
1 changed files with 5 additions and 2 deletions
7
neofetch
7
neofetch
|
@ -2517,10 +2517,13 @@ get_gpu() {
|
|||
|
||||
"Windows")
|
||||
while read -r line; do
|
||||
[[ $win_gpu ]] || {
|
||||
win_gpu=1
|
||||
continue
|
||||
}
|
||||
|
||||
prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")"
|
||||
done < <(wmic path Win32_VideoController get caption)
|
||||
|
||||
gpu=${gpu//Caption}
|
||||
;;
|
||||
|
||||
"Haiku")
|
||||
|
|
Loading…
Reference in a new issue