diff options
| author | ozpv <39195175+ozpv@users.noreply.github.com> | 2023-08-01 05:42:21 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-01 05:42:21 +0000 |
| commit | 1446e02ec347b4e24113ec596df9a4647a0fef1f (patch) | |
| tree | 75618c73561ae4b6f02b650773b51820aeec2041 /config.h | |
| parent | 9892de3813296a70451372856c31634f86ecd9f2 (diff) | |
add keyboard and mouse scrollback support
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -16,7 +16,7 @@ static int borderpx = 20; * 4: value of shell in /etc/passwd * 5: value of shell in config.h */ -static char *shell = "/bin/sh"; +static char *shell = "/bin/zsh"; char *utmp = NULL; /* scroll program: to enable use a string like "scroll" */ char *scroll = NULL; @@ -195,6 +195,8 @@ static uint forcemousemod = ShiftMask; */ static MouseShortcut mshortcuts[] = { /* mask button function argument release */ + { XK_ANY_MOD, Button4, kscrollup, {.i = 1} }, + { XK_ANY_MOD, Button5, kscrolldown, {.i = 1} }, { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, @@ -220,6 +222,8 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_Y, selpaste, {.i = 0} }, { ShiftMask, XK_Insert, selpaste, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, + { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, + { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, }; /* |
