diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2024-06-30 14:16:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-30 13:16:41 +0200 |
| commit | 4d6f96f74f9fa6e7b69790fa569ffe60267f8017 (patch) | |
| tree | 560ac2a78da99de18687acea17968a62a5a69e2b /src/debug/HyprCtl.cpp | |
| parent | 8ff9410d2cd39fc1c677799a29f7a063743c0dc9 (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.cpp | 5 |
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"; |
