summaryrefslogtreecommitdiff
path: root/src/config/shared/workspace/WorkspaceRule.hpp
blob: e56a13663db5617f02475b0f29876c74d593ba2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once

#include <string>
#include <optional>
#include <map>

#include "../complex/ComplexDataTypes.hpp"
#include "../../../defines.hpp"

namespace Config {
    class CWorkspaceRule {
      public:
        CWorkspaceRule()  = default;
        ~CWorkspaceRule() = default;

        CWorkspaceRule(const CWorkspaceRule&) = default;
        CWorkspaceRule(CWorkspaceRule&)       = default;
        CWorkspaceRule(CWorkspaceRule&&)      = default;

        CWorkspaceRule& operator=(const CWorkspaceRule&) = default;

        // merge other into us
        void                               mergeLeft(const CWorkspaceRule& other);

        bool                               m_enabled         = true;
        std::string                        m_monitor         = "";
        std::string                        m_workspaceString = "";
        std::string                        m_workspaceName   = "";
        WORKSPACEID                        m_workspaceId     = -1;
        std::optional<bool>                m_isDefault;
        std::optional<bool>                m_isPersistent;
        std::optional<CCssGapData>         m_gapsIn;
        std::optional<CCssGapData>         m_gapsOut;
        std::optional<CCssGapData>         m_floatGaps = m_gapsOut;
        std::optional<int64_t>             m_borderSize;
        std::optional<bool>                m_decorate;
        std::optional<bool>                m_noRounding;
        std::optional<bool>                m_noBorder;
        std::optional<bool>                m_noShadow;
        std::optional<std::string>         m_onCreatedEmptyRunCmd;
        std::optional<std::string>         m_defaultName;
        std::optional<std::string>         m_layout;
        std::map<std::string, std::string> m_layoutopts;
        std::optional<std::string>         m_animationStyle;
    };
};