diff options
| author | vaxerski <vaxry@vaxry.net> | 2024-09-25 10:36:43 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2024-09-25 10:36:51 +0100 |
| commit | 2a052c69f36a71fb473262f57039b8ac81518ad3 (patch) | |
| tree | 637def56cae5e45778a49b6866fc96776307a2b9 /src/main.cpp | |
| parent | 2320b2241c0713b8d81e8f467cb99bd4179ad23b (diff) | |
core: add a --systeminfo parameter to gather systeminfo without running
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index ba6fe505..279e1ce1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,6 +3,7 @@ #include "Compositor.hpp" #include "config/ConfigManager.hpp" #include "init/initHelpers.hpp" +#include "debug/HyprCtl.hpp" #include <hyprutils/string/String.hpp> using namespace Hyprutils::String; @@ -133,6 +134,10 @@ int main(int argc, char** argv) { std::cout << result; return 0; + } else if (it->compare("--systeminfo") == 0) { + const auto SYSINFO = systemInfoRequest(eHyprCtlOutputFormat::FORMAT_NORMAL, ""); + std::cout << SYSINFO << "\n"; + return 0; } else { std::cerr << "[ ERROR ] Unknown option '" << it->c_str() << "'!\n"; help(); |
