mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2025-12-20 04:30:02 +01:00
ipc
This commit is contained in:
parent
8b7f9e78d6
commit
d1fd91b54d
2 changed files with 5 additions and 1 deletions
|
|
@ -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{""});
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue