gpu [linux]: Add clock speed
This commit is contained in:
parent
0e59d6c041
commit
efa9ff6726
1 changed files with 1 additions and 5 deletions
6
neofetch
6
neofetch
|
@ -1225,7 +1225,6 @@ get_gpu() {
|
||||||
[[ "$gpu_type" == "integrated" && ! "$gpu" =~ (i|I)ntel ]] && \
|
[[ "$gpu_type" == "integrated" && ! "$gpu" =~ (i|I)ntel ]] && \
|
||||||
{ unset -v gpu; continue; }
|
{ unset -v gpu; continue; }
|
||||||
|
|
||||||
|
|
||||||
case "$gpu" in
|
case "$gpu" in
|
||||||
*"advanced"*)
|
*"advanced"*)
|
||||||
gpu="${gpu/'[AMD/ATI]' }"
|
gpu="${gpu/'[AMD/ATI]' }"
|
||||||
|
@ -1269,10 +1268,7 @@ get_gpu() {
|
||||||
gpu="${gpu/Intel }"
|
gpu="${gpu/Intel }"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
prin "${subtitle:+${subtitle}${gpu_name}}" "$gpu"
|
prin "${subtitle:+${subtitle}${gpu_name}}" "$gpu ${freq:+@ ${freq}Mhz}"
|
||||||
|
|
||||||
[[ "${gpu_freq:-on}" == "on" && "$freq" ]] && \
|
|
||||||
prin "GPU Frequency" "${freq}Mhz"
|
|
||||||
|
|
||||||
((++gpu_num))
|
((++gpu_num))
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue