mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 22:05:58 +01:00
2402f2e364
are passed for json output
22 lines
No EOL
498 B
C++
22 lines
No EOL
498 B
C++
#pragma once
|
|
|
|
#include "../Compositor.hpp"
|
|
#include <fstream>
|
|
#include "../helpers/MiscFunctions.hpp"
|
|
|
|
namespace HyprCtl {
|
|
void startHyprCtlSocket();
|
|
void tickHyprCtl();
|
|
|
|
// very simple thread-safe request method
|
|
inline bool requestMade = false;
|
|
inline bool requestReady = false;
|
|
inline std::string request = "";
|
|
|
|
inline std::ifstream requestStream;
|
|
|
|
enum eHyprCtlOutputFormat {
|
|
FORMAT_NORMAL = 0,
|
|
FORMAT_JSON
|
|
};
|
|
}; |