mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
windows: Fix gpu output
This commit is contained in:
7
neofetch
7
neofetch
@@ -2517,10 +2517,13 @@ get_gpu() {
|
|||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
|
[[ $win_gpu ]] || {
|
||||||
|
win_gpu=1
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")"
|
prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")"
|
||||||
done < <(wmic path Win32_VideoController get caption)
|
done < <(wmic path Win32_VideoController get caption)
|
||||||
|
|
||||||
gpu=${gpu//Caption}
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Haiku")
|
"Haiku")
|
||||||
|
Reference in New Issue
Block a user