diff --git a/test b/test new file mode 100644 index 0000000..22b2b17 --- /dev/null +++ b/test @@ -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]}}' \ No newline at end of file diff --git a/uwufetch.c b/uwufetch.c index ec69ea9..274e346 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -195,6 +195,13 @@ void get_info() { // get all necessary info break; } } + + // gpu + FILE *gpu = popen("lspci", "r"); + if (gpu) { + + fclose(gpu); + } pkgs = pkgman(); }