internal: Add functions to hyprctl header (#6745)

* add functions to hyprctl header

* refactor monitor json into own function and add it to header

* format hyprctl.hpp

* move functions to namespace

* move helper functions to class
This commit is contained in:
Yusuf 2024-07-07 17:52:56 +02:00 committed by GitHub
parent ede1e63f69
commit 19fb13e6cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 45 additions and 35 deletions

View file

@ -22,6 +22,10 @@ class CHyprCtl {
bool sysInfoConfig = false;
} m_sCurrentRequestParams;
static std::string getWindowData(PHLWINDOW w, eHyprCtlOutputFormat format);
static std::string getWorkspaceData(PHLWORKSPACE w, eHyprCtlOutputFormat format);
static std::string getMonitorData(Hyprutils::Memory::CSharedPointer<CMonitor> m, eHyprCtlOutputFormat format);
private:
void startHyprCtlSocket();