#pragma once #include "../Compositor.hpp" #include #include "../helpers/MiscFunctions.hpp" #include class CHyprCtl { public: CHyprCtl(); std::string makeDynamicCall(const std::string& input); SP registerCommand(SHyprCtlCommand cmd); void unregisterCommand(const SP& cmd); std::string getReply(std::string); int m_iSocketFD = -1; struct { bool all = false; } m_sCurrentRequestParams; private: void startHyprCtlSocket(); std::vector> m_vCommands; }; inline std::unique_ptr g_pHyprCtl;