MTK CPU will now display "MTK" brand.
This commit is contained in:
parent
f8ab4de758
commit
926e442b6a
1 changed files with 10 additions and 0 deletions
10
neofetch
10
neofetch
|
@ -2525,6 +2525,12 @@ get_cpu() {
|
||||||
deg="[${deg/${deg: -1}}.${deg: -1}°${cpu_temp:-C}]"
|
deg="[${deg/${deg: -1}}.${deg: -1}°${cpu_temp:-C}]"
|
||||||
cpu="$cpu $deg"
|
cpu="$cpu $deg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Add CPU brand because MTK uses MT* as CPU name.
|
||||||
|
if [[ "$cpu_brand" == "on" ]] && [[ "$cpu" == "MT"* ]] then
|
||||||
|
cpu="MTK $cpu"
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get_gpu() {
|
get_gpu() {
|
||||||
|
@ -2615,6 +2621,10 @@ get_gpu() {
|
||||||
gpu="${gpu/AMD }"
|
gpu="${gpu/AMD }"
|
||||||
gpu="${gpu/NVIDIA }"
|
gpu="${gpu/NVIDIA }"
|
||||||
gpu="${gpu/Intel }"
|
gpu="${gpu/Intel }"
|
||||||
|
gpu="${gpu/Adreno }"
|
||||||
|
gpu="${gpu/adreno }"
|
||||||
|
gpu="${gpu/Mali }"
|
||||||
|
gpu="${gpu/mali }"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
prin "${subtitle:+${subtitle}${gpu_name}}" "$gpu"
|
prin "${subtitle:+${subtitle}${gpu_name}}" "$gpu"
|
||||||
|
|
Loading…
Reference in a new issue