From efa9ff672607cc3047bf2abc428b83e93c6d92c8 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 23 Dec 2017 22:28:13 +1100 Subject: [PATCH] gpu [linux]: Add clock speed --- neofetch | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/neofetch b/neofetch index c6da59d0..9c54a388 100755 --- a/neofetch +++ b/neofetch @@ -1225,7 +1225,6 @@ get_gpu() { [[ "$gpu_type" == "integrated" && ! "$gpu" =~ (i|I)ntel ]] && \ { unset -v gpu; continue; } - case "$gpu" in *"advanced"*) gpu="${gpu/'[AMD/ATI]' }" @@ -1269,10 +1268,7 @@ get_gpu() { gpu="${gpu/Intel }" fi - prin "${subtitle:+${subtitle}${gpu_name}}" "$gpu" - - [[ "${gpu_freq:-on}" == "on" && "$freq" ]] && \ - prin "GPU Frequency" "${freq}Mhz" + prin "${subtitle:+${subtitle}${gpu_name}}" "$gpu ${freq:+@ ${freq}Mhz}" ((++gpu_num)) done