config: add a new monitor v2 config syntax (#9761)
This commit is contained in:
parent
59c886d855
commit
abdfc5ea40
3 changed files with 322 additions and 157 deletions
|
|
@ -1109,6 +1109,9 @@ static std::string dispatchKeyword(eHyprCtlOutputFormat format, std::string in)
|
|||
if (COMMAND == "monitor" || COMMAND == "source")
|
||||
g_pConfigManager->m_wantsMonitorReload = true; // for monitor keywords
|
||||
|
||||
if (COMMAND.contains("monitorv2"))
|
||||
g_pEventLoopManager->doLater([] { g_pConfigManager->m_wantsMonitorReload = true; });
|
||||
|
||||
if (COMMAND.contains("input") || COMMAND.contains("device") || COMMAND == "source") {
|
||||
g_pInputManager->setKeyboardLayout(); // update kb layout
|
||||
g_pInputManager->setPointerConfigs(); // update mouse cfgs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue