From 39dcfa61c3530c2049b9e88afff6b31f5b2bb7fd Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 8 May 2022 15:28:45 +0200 Subject: Added hyprctl reload --- src/debug/HyprCtl.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/debug/HyprCtl.cpp') diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index d670ea37..5c4f42c1 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -130,6 +130,12 @@ std::string dispatchKeyword(std::string in) { return retval; } +std::string reloadRequest() { + g_pConfigManager->m_bForceReload = true; + + return "ok"; +} + std::string getReply(std::string); std::string dispatchBatch(std::string request) { @@ -177,6 +183,8 @@ std::string getReply(std::string request) { return layersRequest(); else if (request == "version") return versionRequest(); + else if (request == "reload") + return reloadRequest(); else if (request.find("dispatch") == 0) return dispatchRequest(request); else if (request.find("keyword") == 0) -- cgit v1.2.3