From 926e442b6a61dc08561726ef0b61275e489790d0 Mon Sep 17 00:00:00 2001 From: dontknowhy Date: Sun, 18 Jun 2023 14:13:30 +0800 Subject: [PATCH] MTK CPU will now display "MTK" brand. --- neofetch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/neofetch b/neofetch index 185f1e2f..18c4cec5 100755 --- a/neofetch +++ b/neofetch @@ -2525,6 +2525,12 @@ get_cpu() { deg="[${deg/${deg: -1}}.${deg: -1}°${cpu_temp:-C}]" cpu="$cpu $deg" fi + + # Add CPU brand because MTK uses MT* as CPU name. + if [[ "$cpu_brand" == "on" ]] && [[ "$cpu" == "MT"* ]] then + cpu="MTK $cpu" + fi + } get_gpu() { @@ -2615,6 +2621,10 @@ get_gpu() { gpu="${gpu/AMD }" gpu="${gpu/NVIDIA }" gpu="${gpu/Intel }" + gpu="${gpu/Adreno }" + gpu="${gpu/adreno }" + gpu="${gpu/Mali }" + gpu="${gpu/mali }" fi prin "${subtitle:+${subtitle}${gpu_name}}" "$gpu"