From f045e8ec00bda07caeab52fd376ab875b937929d Mon Sep 17 00:00:00 2001 From: TheDarkBug Date: Sun, 14 Mar 2021 19:19:30 +0100 Subject: [PATCH] Working on gpu info --- test | 1 + uwufetch.c | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 test 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(); }