This commit is contained in:
Vaxry 2025-12-03 15:04:52 +00:00
parent 8b7f9e78d6
commit d1fd91b54d
Signed by: vaxry
GPG key ID: 665806380871D640
2 changed files with 5 additions and 1 deletions

View file

@ -24,6 +24,7 @@ void CConfigManager::init() {
m_config.addConfigValue("splash", Hyprlang::INT{1});
m_config.addConfigValue("splash_offset", Hyprlang::INT{20});
m_config.addConfigValue("splash_opacity", Hyprlang::FLOAT{0.8});
m_config.addConfigValue("ipc", Hyprlang::INT{1});
m_config.addSpecialCategory("wallpaper", Hyprlang::SSpecialCategoryOptions{.key = "monitor"});
m_config.addSpecialConfigValue("wallpaper", "monitor", Hyprlang::STRING{""});

View file

@ -76,12 +76,15 @@ void CUI::registerOutput(const SP<Hyprtoolkit::IOutput>& mon) {
}
bool CUI::run() {
static const auto PENABLEIPC = Hyprlang::CSimpleConfigValue<Hyprlang::INT>(g_config->hyprlang(), "ipc");
m_backend = Hyprtoolkit::IBackend::create();
if (!m_backend)
return false;
IPC::g_IPCSocket = makeUnique<IPC::CSocket>();
if (*PENABLEIPC)
IPC::g_IPCSocket = makeUnique<IPC::CSocket>();
const auto MONITORS = m_backend->getOutputs();