summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.hpp
blob: 60559e9f13782964e18f8c124774be9c9ee65b5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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
    };
};