diff options
author | vaxerski <[email protected]> | 2023-04-03 16:46:03 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-04-03 16:46:03 +0100 |
commit | 039a97adc8048f7d7ffbcc9f822b3cafdc50479c (patch) | |
tree | db8a0ea733d92ed236353261a42a7c3906b960eb /src/config/ConfigManager.hpp | |
parent | 49e7f357346e8a30077ac43d32eda37fc237136e (diff) | |
parent | e6211eef00a96c0dc7f8c06a6a151f5485977a0d (diff) | |
download | Hyprland-039a97adc8048f7d7ffbcc9f822b3cafdc50479c.tar.gz Hyprland-039a97adc8048f7d7ffbcc9f822b3cafdc50479c.zip |
mergescreencopy-impl
Diffstat (limited to 'src/config/ConfigManager.hpp')
-rw-r--r-- | src/config/ConfigManager.hpp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp index fd6b40af..c554763f 100644 --- a/src/config/ConfigManager.hpp +++ b/src/config/ConfigManager.hpp @@ -34,16 +34,15 @@ struct SConfigValue { }; struct SMonitorRule { - std::string name = ""; - Vector2D resolution = Vector2D(1280, 720); - Vector2D offset = Vector2D(0, 0); - float scale = 1; - float refreshRate = 60; - std::string defaultWorkspace = ""; - bool disabled = false; - wl_output_transform transform = WL_OUTPUT_TRANSFORM_NORMAL; - std::string mirrorOf = ""; - bool enable10bit = false; + std::string name = ""; + Vector2D resolution = Vector2D(1280, 720); + Vector2D offset = Vector2D(0, 0); + float scale = 1; + float refreshRate = 60; + bool disabled = false; + wl_output_transform transform = WL_OUTPUT_TRANSFORM_NORMAL; + std::string mirrorOf = ""; + bool enable10bit = false; }; struct SMonitorAdditionalReservedArea { @@ -54,7 +53,7 @@ struct SMonitorAdditionalReservedArea { }; struct SAnimationPropertyConfig { - bool overriden = true; + bool overridden = true; std::string internalBezier = ""; std::string internalStyle = ""; @@ -150,6 +149,7 @@ class CConfigManager { SConfigValue* getConfigValuePtrSafe(const std::string&); SMonitorRule getMonitorRuleFor(const std::string&, const std::string& displayName = ""); + std::string getDefaultWorkspaceFor(const std::string&); CMonitor* getBoundMonitorForWS(const std::string&); std::string getBoundMonitorStringForWS(const std::string&); @@ -187,7 +187,7 @@ class CConfigManager { private: std::deque<std::string> configPaths; // stores all the config paths std::unordered_map<std::string, time_t> configModifyTimes; // stores modify times - std::unordered_map<std::string, std::string> configDynamicVars; // stores dynamic vars declared by the user + std::vector<std::pair<std::string, std::string>> configDynamicVars; // stores dynamic vars declared by the user std::unordered_map<std::string, SConfigValue> configValues; std::unordered_map<std::string, std::unordered_map<std::string, SConfigValue>> deviceConfigs; // stores device configs @@ -208,6 +208,7 @@ class CConfigManager { bool isFirstLaunch = true; // For exec-once std::deque<SMonitorRule> m_dMonitorRules; + std::unordered_map<std::string, std::string> m_mDefaultWorkspaces; std::deque<SWindowRule> m_dWindowRules; std::deque<SLayerRule> m_dLayerRules; std::deque<std::string> m_dBlurLSNamespaces; @@ -215,7 +216,7 @@ class CConfigManager { bool firstExecDispatched = false; std::deque<std::string> firstExecRequests; - std::unordered_map<std::string, std::string> environmentVariables; + std::vector<std::pair<std::string, std::string>> environmentVariables; // internal methods void setDefaultVars(); |