mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-09 08:31:54 -07:00
core: add auto-center arrangements (#10527)
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
committed by
GitHub
parent
ddb9f8394d
commit
90d0b8ecae
@@ -2049,10 +2049,20 @@ std::optional<std::string> CConfigManager::handleMonitor(const std::string& comm
|
||||
newrule.autoDir = eAutoDirs::DIR_AUTO_UP;
|
||||
else if (ARGS[2] == "auto-down")
|
||||
newrule.autoDir = eAutoDirs::DIR_AUTO_DOWN;
|
||||
else if (ARGS[2] == "auto-center-right")
|
||||
newrule.autoDir = eAutoDirs::DIR_AUTO_CENTER_RIGHT;
|
||||
else if (ARGS[2] == "auto-center-left")
|
||||
newrule.autoDir = eAutoDirs::DIR_AUTO_CENTER_LEFT;
|
||||
else if (ARGS[2] == "auto-center-up")
|
||||
newrule.autoDir = eAutoDirs::DIR_AUTO_CENTER_UP;
|
||||
else if (ARGS[2] == "auto-center-down")
|
||||
newrule.autoDir = eAutoDirs::DIR_AUTO_CENTER_DOWN;
|
||||
else {
|
||||
Debug::log(WARN,
|
||||
"Invalid auto direction. Valid options are 'auto',"
|
||||
"'auto-up', 'auto-down', 'auto-left', and 'auto-right'.");
|
||||
"'auto-up', 'auto-down', 'auto-left', 'auto-right',"
|
||||
"'auto-center-up', 'auto-center-down',"
|
||||
"'auto-center-left', and 'auto-center-right'.");
|
||||
error += "invalid auto direction ";
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user