diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-08-14 23:26:18 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-08-14 23:26:18 +0200 |
| commit | f0fe0c25d6474a852e1d7f1af62b7854ac461af6 (patch) | |
| tree | 7a1844eef0a77d409829dcd27ae5cd5112adfcf6 /src/debug/HyprCtl.cpp | |
| parent | d906617fb681bd665d6ede26ba27f51046496e8e (diff) | |
added config-only to hyprctl reload
Diffstat (limited to 'src/debug/HyprCtl.cpp')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index b0d0d86d..21f4e23d 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -505,9 +505,16 @@ std::string dispatchKeyword(std::string in) { return retval; } -std::string reloadRequest() { +std::string reloadRequest(std::string request) { + + const auto REQMODE = request.substr(request.find_last_of(' ') + 1); + g_pConfigManager->m_bForceReload = true; + if (REQMODE == "config-only") { + g_pConfigManager->m_bNoMonitorReload = true; + } + return "ok"; } @@ -681,8 +688,8 @@ std::string getReply(std::string request) { return layersRequest(format); else if (request == "version") return versionRequest(format); - else if (request == "reload") - return reloadRequest(); + else if (request.find("reload") == 0) + return reloadRequest(request); else if (request == "devices") return devicesRequest(format); else if (request == "splash") |
