summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2024-06-30 14:16:41 +0300
committerGitHub <noreply@github.com>2024-06-30 13:16:41 +0200
commit4d6f96f74f9fa6e7b69790fa569ffe60267f8017 (patch)
tree560ac2a78da99de18687acea17968a62a5a69e2b /src/debug/HyprCtl.cpp
parent8ff9410d2cd39fc1c677799a29f7a063743c0dc9 (diff)
debug: add Nvidia driver info (#6715)
* add nvidia driver info to systeminfo * check file exists
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index b0a0c477..571aa6d1 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -912,7 +912,10 @@ std::string systemInfoRequest(eHyprCtlOutputFormat format, std::string request)
#else
const std::string GPUINFO = execAndGet("lspci -vnn | grep VGA");
#endif
- result += "GPU information: \n" + GPUINFO + "\n\n";
+ result += "GPU information: \n" + GPUINFO;
+ if (GPUINFO.contains("NVIDIA") && std::filesystem::exists("/proc/driver/nvidia/version"))
+ result += execAndGet("cat /proc/driver/nvidia/version | grep NVRM");
+ result += "\n\n";
result += "os-release: " + execAndGet("cat /etc/os-release") + "\n\n";