Working on gpu info

This commit is contained in:
TheDarkBug 2021-03-14 19:19:30 +01:00
parent 9933280db5
commit f045e8ec00
2 changed files with 8 additions and 0 deletions

1
test Normal file
View file

@ -0,0 +1 @@
lspci -mm | awk -F '\"|\" \"|\\(' '/"Display|"3D|"VGA/ {a[$0] = $1 " " $3 " " $4}END {for(i in a) {if(!seen[a[i]]++) print a[i]}}'

View file

@ -195,6 +195,13 @@ void get_info() { // get all necessary info
break;
}
}
// gpu
FILE *gpu = popen("lspci", "r");
if (gpu) {
fclose(gpu);
}
pkgs = pkgman();
}