diff options
author | Shiva <shiv@shiv.me> | 2017-01-29 21:39:12 -0800 |
---|---|---|
committer | Shiva <shiv@shiv.me> | 2017-01-29 21:39:12 -0800 |
commit | 10bf3c85073325a2e3fd4c2201b7a3e4770e70d3 (patch) | |
tree | b07aa1e059382433eed05dcd5220398282a64656 /config.def.h | |
parent | 683341140065b3096ee9e7e3e3b042f9c52230a6 (diff) |
Scrollback + wheel support
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index a719e36..e338673 100644 --- a/config.def.h +++ b/config.def.h @@ -156,8 +156,14 @@ static unsigned int defaultattr = 11; */ static MouseShortcut mshortcuts[] = { /* button mask string */ - { Button4, XK_ANY_MOD, "\031" }, - { Button5, XK_ANY_MOD, "\005" }, + { Button4, XK_NO_MOD, "\031" }, + { Button5, XK_NO_MOD, "\005" }, +}; + +static MouseKey mkeys[] = { + /* button mask function argument */ + { Button4, ShiftMask, kscrollup, {.i = 1} }, + { Button5, ShiftMask, kscrolldown, {.i = 1} }, }; /* Internal keyboard shortcuts. */ @@ -178,6 +184,8 @@ static Shortcut shortcuts[] = { { MODKEY|ShiftMask, XK_V, clippaste, {.i = 0} }, { MODKEY, XK_Num_Lock, numlock, {.i = 0} }, { MODKEY, XK_Control_L, iso14755, {.i = 0} }, + { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, + { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, }; /* |