summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu.c b/src/gpu.c
index 76a43e8..df75cdf 100644
--- a/src/gpu.c
+++ b/src/gpu.c
@@ -49,6 +49,9 @@ const char *display_gpu() {
"grep -F \"device\" | sed 's/^.* device//' | "
"sed \"s/^.* '//\" | sed \"s/'//\" | tail -1 | "
"sed 's/ Core Processor Integrated Graphics Controller//'");
+#elif defined(__linux__)
+ return run_gpu_command("lspci | grep VGA | sed 's/^.*: //' | "
+ "sed 's/Corporation //' | sed 's/ (.*$//'");
#else
if (
access("/bin/glxinfo", F_OK) == -1 &&