From 7e7fab861a7e5baae9182419f7f320af36ce1ec4 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Wed, 29 Sep 2021 12:59:39 -0700 Subject: Feat(wm): prepararation for layout mechanism --- sys/cmd/wm/config.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'sys/cmd/wm/config.h') diff --git a/sys/cmd/wm/config.h b/sys/cmd/wm/config.h index dbeeaf6..3c8c4d9 100644 --- a/sys/cmd/wm/config.h +++ b/sys/cmd/wm/config.h @@ -12,6 +12,22 @@ CONFIG(int, repeat_delay, 600); /* commands */ CONFIG(char*, termcommand[], { "alacritty", nil }); +/* layouts */ +CONFIG(Layout, layouts[], { + /* symbol arrange */ + { "[]=", tile }, + { "><>", nil }, /* no layout function means floating behavior */ +}); + +/* monitors + * The order in which monitors are defined determines their position. + * non-configured monitors are always added to the left. */ +CONFIG(MonitorRule, monitorrule[], { + /* name layout, x, y, scale, transform master */ + { nil, &cfg·layouts[0], 0, 0, 1, WL_OUTPUT_TRANSFORM_NORMAL, {0.55, 1} }, +}); +CONFIG(MonitorRule*, endmonitorrule, arrend(cfg·monitorrule)); + /* keybindings */ #define MOD(a) WLR_MODIFIER_##a #define MODKEY WLR_MODIFIER_ALT -- cgit v1.2.1