summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.hpp
diff options
context:
space:
mode:
authorYusuf <37774475+Yusuf-Duran@users.noreply.github.com>2024-07-07 17:52:56 +0200
committerGitHub <noreply@github.com>2024-07-07 17:52:56 +0200
commit19fb13e6cf7c9125b471780156fc423118914fb7 (patch)
tree89340b13f74436bb0c432963622001f8f88f0180 /src/debug/HyprCtl.hpp
parentede1e63f69e0356eaef10e3da30b86862df38e8c (diff)
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
Diffstat (limited to 'src/debug/HyprCtl.hpp')
-rw-r--r--src/debug/HyprCtl.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/debug/HyprCtl.hpp b/src/debug/HyprCtl.hpp
index 21a2c5f8..ccbd40cd 100644
--- a/src/debug/HyprCtl.hpp
+++ b/src/debug/HyprCtl.hpp
@@ -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();