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:
parent
ede1e63f69
commit
19fb13e6cf
2 changed files with 45 additions and 35 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue