mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-08-12 20:16:19 -05:00
[F] Fix intel OEM iGPU name (Fix #230)
This commit is contained in:
3
neofetch
3
neofetch
@@ -3614,7 +3614,7 @@ get_gpu() {
|
||||
gpu_cmd="$(lspci -mm |
|
||||
awk -F '\"|\" \"|\\(' \
|
||||
'/"Display|"3D|"VGA/ {
|
||||
a[$0] = $1 " " $3 " " ($(NF-1) ~ /^$|^Device [[:xdigit:]]+$/ ? $4 : $(NF-1))
|
||||
a[$0] = $1 " " $3 " " ($3 ~ /Intel/ || $(NF-1) ~ /^$|^Device [[:xdigit:]]+$/ ? $4 : $(NF-1))
|
||||
}
|
||||
END { for (i in a) {
|
||||
if (!seen[a[i]]++) {
|
||||
@@ -3662,6 +3662,7 @@ get_gpu() {
|
||||
gpu="${gpu/*Intel/Intel}"
|
||||
gpu="${gpu/\(R\)}"
|
||||
gpu="${gpu/Corporation}"
|
||||
[[ "$gpu" == *"["*"]"* ]] && gpu="Intel ${gpu/*\[}" && gpu="${gpu/\]*}"
|
||||
gpu="${gpu/ \(*}"
|
||||
gpu="${gpu/Integrated Graphics Controller}"
|
||||
gpu="${gpu/*Xeon*/Intel HD Graphics}"
|
||||
|
||||
Reference in New Issue
Block a user