various: fix windows issues
This commit is contained in:
parent
7bf2ecee26
commit
4660ae7a53
8
neofetch
8
neofetch
|
@ -1718,11 +1718,11 @@ get_de() {
|
||||||
|
|
||||||
Windows)
|
Windows)
|
||||||
case $distro in
|
case $distro in
|
||||||
"Windows 10"*)
|
*"Windows 10"*)
|
||||||
de=Fluent
|
de=Fluent
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows 8"*)
|
*"Windows 8"*)
|
||||||
de=Metro
|
de=Metro
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -2517,12 +2517,14 @@ get_gpu() {
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
|
line=$(trim "$line")
|
||||||
|
|
||||||
[[ -z $win_gpu ]] || [[ -z "$line" ]] && {
|
[[ -z $win_gpu ]] || [[ -z "$line" ]] && {
|
||||||
win_gpu=1
|
win_gpu=1
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")"
|
prin "${subtitle:+${subtitle}${gpu_name}}" "$line"
|
||||||
done < <(wmic path Win32_VideoController get caption)
|
done < <(wmic path Win32_VideoController get caption)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Reference in New Issue