aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/wm/config.h
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-09-29 12:59:39 -0700
committerNicholas Noll <nbnoll@eml.cc>2021-09-29 12:59:39 -0700
commit7e7fab861a7e5baae9182419f7f320af36ce1ec4 (patch)
treed323b19f009826d437a3216909d38ee1a05f8382 /sys/cmd/wm/config.h
parentd20be3112770c9fd252c91306675717dcb59e28f (diff)
Feat(wm): prepararation for layout mechanism
Diffstat (limited to 'sys/cmd/wm/config.h')
-rw-r--r--sys/cmd/wm/config.h16
1 files changed, 16 insertions, 0 deletions
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