From 6381b6474fb6973bfe83526e21bcee08e5e45ecc Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Sat, 10 Dec 2022 22:59:16 +0100 Subject: Implement orientation (placement of master area) for master layout (#1202) * Implemented choosing placement of master area (#1059) This implement a per workspace 'orientation' that can be set to left, right, top or bottom. Reflecting placement of the master area. Left (default) and right are horizontal layouts, top and bottom produce vertical layouts. Orientation can be switched with: 'hyprctl dispatch layoutmsg orientationleft' --- src/config/ConfigManager.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/config/ConfigManager.cpp') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 89152acc..21659cf2 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -109,6 +109,7 @@ void CConfigManager::setDefaultVars() { configValues["master:new_is_master"].intValue = 1; configValues["master:new_on_top"].intValue = 0; configValues["master:no_gaps_when_only"].intValue = 0; + configValues["master:orientation"].strValue = "left"; configValues["animations:enabled"].intValue = 1; configValues["animations:speed"].floatValue = 7.f; -- cgit v1.2.3