diff options
author | vaxerski <[email protected]> | 2022-07-10 15:41:26 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-07-10 15:41:26 +0200 |
commit | 4b334594dc0d8989d8bb09c7db76694aacc71951 (patch) | |
tree | 9b5fcedc0470209959cd6553b95d9632883f82de /src/debug | |
parent | 06c0be5ea6e3ed6b7fe7a45a550d42bc646ad6db (diff) | |
download | Hyprland-4b334594dc0d8989d8bb09c7db76694aacc71951.tar.gz Hyprland-4b334594dc0d8989d8bb09c7db76694aacc71951.zip |
Added splashes
Diffstat (limited to 'src/debug')
-rw-r--r-- | src/debug/HyprCtl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 84909a8e..7aa0017e 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -181,6 +181,10 @@ std::string killRequest() { return "ok"; } +std::string splashRequest() { + return g_pCompositor->m_szCurrentSplash; +} + std::string getReply(std::string); std::string dispatchBatch(std::string request) { @@ -234,6 +238,8 @@ std::string getReply(std::string request) { return reloadRequest(); else if (request == "devices") return devicesRequest(); + else if (request == "splash") + return splashRequest(); else if (request.find("dispatch") == 0) return dispatchRequest(request); else if (request.find("keyword") == 0) |