summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
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();