added hyprctl getoption

This commit is contained in:
vaxerski
2022-08-11 21:16:38 +02:00
parent f85c765634
commit 9102471610
4 changed files with 55 additions and 0 deletions

View File

@@ -1331,6 +1331,15 @@ SConfigValue* CConfigManager::getConfigValuePtr(std::string val) {
return &configValues[val];
}
SConfigValue* CConfigManager::getConfigValuePtrSafe(std::string val) {
const auto IT = configValues.find(val);
if (IT == configValues.end())
return nullptr;
return &(IT->second);
}
bool CConfigManager::deviceConfigExists(const std::string& dev) {
const auto it = deviceConfigs.find(dev);