From 7186ee2ddd658ffea4aa25283c68c775c3d2dc03 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 16 Oct 2018 15:21:02 -0400 Subject: mouse bindings and documentation --- config.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 5632a48..1eb02e9 100644 --- a/config.h +++ b/config.h @@ -192,15 +192,20 @@ static MouseShortcut mshortcuts[] = { { Button5, XK_NO_MOD, "\005" }, }; +/* Internal keyboard shortcuts. */ +#define MODKEY Mod1Mask +#define TERMMOD (ControlMask|ShiftMask) + MouseKey mkeys[] = { /* button mask function argument */ { Button4, ShiftMask, kscrollup, {.i = 1} }, { Button5, ShiftMask, kscrolldown, {.i = 1} }, + { Button4, MODKEY, kscrollup, {.i = 1} }, + { Button5, MODKEY, kscrolldown, {.i = 1} }, + { Button4, MODKEY|ShiftMask, zoom, {.f = +1} }, + { Button5, MODKEY|ShiftMask, zoom, {.f = -1} }, }; -/* Internal keyboard shortcuts. */ -#define MODKEY Mod1Mask -#define TERMMOD (ControlMask|ShiftMask) static Shortcut shortcuts[] = { /* mask keysym function argument */ -- cgit v1.2.3