aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/wm/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/wm/config.h')
-rw-r--r--sys/cmd/wm/config.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/cmd/wm/config.h b/sys/cmd/wm/config.h
index 517c78d..d44b45f 100644
--- a/sys/cmd/wm/config.h
+++ b/sys/cmd/wm/config.h
@@ -43,8 +43,8 @@ CONFIG(MonitorRule, monitorrule[], {
CONFIG(MonitorRule*, endmonitorrule, arrend(cfg·monitorrule));
/* keybindings */
-#define MOD(a) WLR_MODIFIER_##a
#define MODKEY WLR_MODIFIER_ALT
+#define MOD(a) WLR_MODIFIER_##a
#define KEY(a) XKB_KEY_##a
CONFIG(Key, binding[], {
@@ -55,5 +55,14 @@ CONFIG(Key, binding[], {
CONFIG(Key*, endbinding, arrend(cfg·binding));
#undef MOD
-#undef MODKEY
#undef KEY
+
+/* mouse buttons */
+CONFIG(Button, button[], {
+ { MODKEY, BTN_LEFT, move_client, {.ui = CursorMove} },
+ { MODKEY, BTN_MIDDLE, float_client, {0} },
+ { MODKEY, BTN_RIGHT, resize_client, {.ui = CursorResize} },
+});
+CONFIG(Button*, endbutton, arrend(cfg·button));
+
+#undef MODKEY