forward/back key to scroll

This commit is contained in:
hazen2215 2022-08-23 20:08:41 +09:00
parent c9d231cf1c
commit 7ff9ca7f97
1 changed files with 3 additions and 0 deletions

View File

@ -195,6 +195,7 @@ static ExternalPipe pager = { .histlines = -1, .cmd = (char *const[]){ "st-pager
#define MODKEY Mod4Mask
#define TERMMOD (ControlMask|ShiftMask)
#include <X11/XF86keysym.h>
/* Internal keyboard shortcuts. */
static Shortcut shortcuts[] = {
/* mask keysym function argument */
@ -212,6 +213,8 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Down, kscrolldown, {.i = +1} },
{ ShiftMask, XK_Prior, kscrollup, {.i = -1} },
{ ShiftMask, XK_Next, kscrolldown, {.i = -1} },
{ 0, XF86XK_Forward, kscrollup, {.i = -1} },
{ 0, XF86XK_Back, kscrolldown, {.i = -1} },
{ TERMMOD, XK_J, kscrolldown, {.i = +1} },
{ TERMMOD, XK_K, kscrollup, {.i = +1} },
{ MODKEY, XK_j, kscrolldown, {.i = +1} },