From 19fb13e6cf7c9125b471780156fc423118914fb7 Mon Sep 17 00:00:00 2001 From: Yusuf <37774475+Yusuf-Duran@users.noreply.github.com> Date: Sun, 7 Jul 2024 17:52:56 +0200 Subject: 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 --- src/debug/HyprCtl.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/debug/HyprCtl.hpp') 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 m, eHyprCtlOutputFormat format); + private: void startHyprCtlSocket(); -- cgit v1.2.3